include only the words selection keymap for code inputs

This commit is contained in:
Gani Georgiev
2022-09-18 01:54:39 +03:00
parent 9814dda8e4
commit e542b0d8c5
12 changed files with 19 additions and 17 deletions
+1 -1
View File
@@ -189,7 +189,7 @@
submitShortcut,
...closeBracketsKeymap,
...defaultKeymap,
...searchKeymap,
searchKeymap.find((item) => item.key === "Mod-d"),
...historyKeymap,
...completionKeymap,
]),
@@ -359,6 +359,8 @@
addLabelListeners();
console.log();
editor = new EditorView({
parent: container,
state: EditorState.create({
@@ -379,7 +381,7 @@
submitShortcut,
...closeBracketsKeymap,
...defaultKeymap,
...searchKeymap,
searchKeymap.find((item) => item.key === "Mod-d"),
...historyKeymap,
...completionKeymap,
]),