mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-16 14:00:56 +02: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