update: codeblock disabled keydown propagation
This commit is contained in:
parent
d822e04c0d
commit
65cd8246d7
|
@ -133,6 +133,7 @@ class CodeBlockEditor implements CodeBlockEditorInterface {
|
|||
},
|
||||
});
|
||||
this.codeMirror.on('keydown', (editor, event) => {
|
||||
event.stopPropagation();
|
||||
const lineCount = editor.lineCount();
|
||||
const { line, ch } = editor.getCursor();
|
||||
const { onUpFocus, onDownFocus, onLeftFocus, onRightFocus } =
|
||||
|
|
|
@ -96,6 +96,7 @@ class CodeBlockEditor implements CodeBlockEditorInterface {
|
|||
if (onFocus) onFocus();
|
||||
});
|
||||
this.codeMirror.on('keydown', (editor, event) => {
|
||||
event.stopPropagation();
|
||||
const lineCount = editor.lineCount();
|
||||
const { line, ch } = editor.getCursor();
|
||||
const { onUpFocus, onDownFocus, onLeftFocus, onRightFocus } =
|
||||
|
|
Loading…
Reference in New Issue