mirror of https://github.com/usememos/memos.git
Update web/src/components/MemoEditor/hooks/useAutoComplete.ts
This commit is contained in:
parent
f67821deae
commit
fda5993be8
|
|
@ -10,7 +10,7 @@ const useAutoComplete = (actions: EditorRefActions) => {
|
|||
|
||||
editor.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Enter") {
|
||||
if (event.isComposing || event.keyCode === 229) {
|
||||
if (event.isComposing) {
|
||||
return;
|
||||
}
|
||||
const cursorPosition = actions.getCursorPosition();
|
||||
|
|
|
|||
Loading…
Reference in New Issue