Update web/src/components/MemoEditor/hooks/useAutoComplete.ts

This commit is contained in:
boojack 2024-04-25 08:59:18 +08:00 committed by GitHub
parent f67821deae
commit fda5993be8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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();