fix: can not input chinese (#1053)
This commit is contained in:
parent
168c4f6950
commit
6ff79c5d5c
1 changed files with 3 additions and 4 deletions
|
|
@ -173,6 +173,8 @@ const MemoEditor = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
editorRef.current?.scrollToCursor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
@ -483,10 +485,7 @@ const MemoEditor = () => {
|
||||||
<div
|
<div
|
||||||
className={`memo-editor-container ${isEditing ? "edit-ing" : ""} ${state.fullscreen ? "fullscreen" : ""}`}
|
className={`memo-editor-container ${isEditing ? "edit-ing" : ""} ${state.fullscreen ? "fullscreen" : ""}`}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={handleKeyDown}
|
||||||
handleKeyDown(e);
|
|
||||||
editorRef.current?.scrollToCursor();
|
|
||||||
}}
|
|
||||||
onDrop={handleDropEvent}
|
onDrop={handleDropEvent}
|
||||||
onFocus={handleEditorFocus}
|
onFocus={handleEditorFocus}
|
||||||
onBlur={handleEditorBlur}
|
onBlur={handleEditorBlur}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue