mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-04-14 16:40:58 -04:00
Modify to ignore enter-key in IME composing (#446)
This commit is contained in:
parent
4180485eef
commit
5563dd30d7
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ export function textWysiwyg({
|
|||
}
|
||||
if (ev.key === KEYS.ENTER) {
|
||||
ev.preventDefault();
|
||||
if (ev.isComposing || ev.keyCode === 229) {
|
||||
return;
|
||||
}
|
||||
handleSubmit();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue