mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-07-29 15:53:54 -05:00
Fixed an issue where pressing backspace should remove the spaces and not the entire tab width, on enabling 'Use spaces?' in the preferences. #7317
This commit is contained in:
@@ -36,3 +36,4 @@ Bug fixes
|
||||
| `Issue #7275 <https://github.com/pgadmin-org/pgadmin4/issues/7275>`_ - Fixed an issue where debugger was not scrolling automatically on stepping.
|
||||
| `Issue #7282 <https://github.com/pgadmin-org/pgadmin4/issues/7282>`_ - Fixed an XSS vulnerability in the /settings/store endpoint.
|
||||
| `Issue #7294 <https://github.com/pgadmin-org/pgadmin4/issues/7294>`_ - Fixed an issue where double dollar quoted code is treated as string in syntax highlighter.
|
||||
| `Issue #7317 <https://github.com/pgadmin-org/pgadmin4/issues/7317>`_ - Fixed an issue where pressing backspace should remove the spaces and not the entire tab width, on enabling 'Use spaces?' in the preferences.
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
keymap,
|
||||
} from '@codemirror/view';
|
||||
import { EditorState, Compartment } from '@codemirror/state';
|
||||
import { history, defaultKeymap, historyKeymap, indentLess, indentMore } from '@codemirror/commands';
|
||||
import { history, defaultKeymap, historyKeymap, indentLess, indentMore, deleteCharBackwardStrict } from '@codemirror/commands';
|
||||
import { closeBrackets, autocompletion, closeBracketsKeymap, completionKeymap, acceptCompletion } from '@codemirror/autocomplete';
|
||||
import {
|
||||
foldGutter,
|
||||
@@ -118,6 +118,10 @@ const defaultExtensions = [
|
||||
},{
|
||||
key: 'Tab',
|
||||
run: acceptCompletion,
|
||||
},{
|
||||
key: 'Backspace',
|
||||
preventDefault: true,
|
||||
run: deleteCharBackwardStrict,
|
||||
}]),
|
||||
sql({
|
||||
dialect: PgSQL,
|
||||
|
||||
Reference in New Issue
Block a user