mirror of
https://github.com/usememos/memos.git
synced 2025-03-24 06:30:09 +01:00
fix: can not input chinese (#1053)
This commit is contained in:
parent
168c4f6950
commit
6ff79c5d5c
@ -173,6 +173,8 @@ const MemoEditor = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
editorRef.current?.scrollToCursor();
|
||||
}
|
||||
}
|
||||
return;
|
||||
@ -483,10 +485,7 @@ const MemoEditor = () => {
|
||||
<div
|
||||
className={`memo-editor-container ${isEditing ? "edit-ing" : ""} ${state.fullscreen ? "fullscreen" : ""}`}
|
||||
tabIndex={0}
|
||||
onKeyDown={(e) => {
|
||||
handleKeyDown(e);
|
||||
editorRef.current?.scrollToCursor();
|
||||
}}
|
||||
onKeyDown={handleKeyDown}
|
||||
onDrop={handleDropEvent}
|
||||
onFocus={handleEditorFocus}
|
||||
onBlur={handleEditorBlur}
|
||||
|
Loading…
x
Reference in New Issue
Block a user