Skip to content

Commit

Permalink
fix(editor): Support backspacing with modifier key (#5845)
Browse files Browse the repository at this point in the history
Support backspacing with modifier key
  • Loading branch information
ivov authored Mar 31, 2023
1 parent 1eba478 commit 11692c5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
insertNewlineAndIndent,
toggleComment,
redo,
deleteCharBackward,
} from '@codemirror/commands';
import { lintGutter } from '@codemirror/lint';

Expand All @@ -38,6 +39,7 @@ export const baseExtensions = [
{ key: 'Enter', run: acceptCompletion },
{ key: 'Mod-/', run: toggleComment },
{ key: 'Mod-Shift-z', run: redo },
{ key: 'Backspace', run: deleteCharBackward, shift: deleteCharBackward },
indentWithTab,
]),
EditorView.lineWrapping,
Expand Down

0 comments on commit 11692c5

Please sign in to comment.