mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-03 12:25:51 +01: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