mirror of
https://github.com/excalidraw/excalidraw
synced 2025-07-25 13:58:22 +08:00
Modify to ignore enter-key in IME composing (#446)
This commit is contained in:

committed by
Christopher Chedeau

parent
4180485eef
commit
5563dd30d7
@ -55,6 +55,9 @@ export function textWysiwyg({
|
||||
}
|
||||
if (ev.key === KEYS.ENTER) {
|
||||
ev.preventDefault();
|
||||
if (ev.isComposing || ev.keyCode === 229) {
|
||||
return;
|
||||
}
|
||||
handleSubmit();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user