Modify to ignore enter-key in IME composing (#446)

This commit is contained in:
Sosuke Suzuki 2020-01-19 07:13:44 +09:00 committed by Christopher Chedeau
parent 4180485eef
commit 5563dd30d7
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,9 @@ export function textWysiwyg({
}
if (ev.key === KEYS.ENTER) {
ev.preventDefault();
if (ev.isComposing || ev.keyCode === 229) {
return;
}
handleSubmit();
}
};