mirror of
https://github.com/excalidraw/excalidraw.git
synced 2026-11-22 14:01:54 +03:00
Modify to ignore enter-key in IME composing (#446)
This commit is contained in:
1 parent
4180485eef
commit
5563dd30d7
1 file changed
+3
@@ -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