Taichi Masuyama há 3 anos atrás
pai
commit
23d5919145

+ 1 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -584,7 +584,7 @@ class CodeMirrorEditor extends AbstractEditor {
   }
 
   keyUpHandler(editor, event) {
-    if (event.key !== 'Backspace') {
+    if (event.key === ':') {
       this.checkWhetherEmojiPickerShouldBeShown();
     }
   }

+ 1 - 1
packages/app/src/components/PageEditor/Editor.tsx

@@ -32,7 +32,7 @@ type EditorPropsType = {
   onChange?: (newValue: string, isClean?: boolean) => void,
   onUpload?: (file) => void,
   indentSize?: number,
-  onScroll?: ({ line: number }) => void,
+  onScroll?: (line: { line: number }) => void,
   onScrollCursorIntoView?: (line: number) => void,
   onSave?: () => Promise<void>,
   onPasteFiles?: (event: Event) => void,