fix(editor): Fix redo in code and expression editor (#5708)

* fix(editor): Fix redo in code and expression editor
*  Updating keymap to use platform-specific command key
This commit is contained in:
Milorad FIlipović
2023-03-17 13:23:49 +01:00
committed by GitHub
parent 233f1fa7ec
commit cd7a55ba5a
4 changed files with 12 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ import {
indentWithTab,
insertNewlineAndIndent,
toggleComment,
redo,
} from '@codemirror/commands';
import { lintGutter } from '@codemirror/lint';
@@ -36,6 +37,7 @@ export const baseExtensions = [
{ key: 'Tab', run: acceptCompletion },
{ key: 'Enter', run: acceptCompletion },
{ key: 'Mod-/', run: toggleComment },
{ key: 'Mod-Shift-z', run: redo },
indentWithTab,
]),
EditorView.lineWrapping,