Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

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

Sosuke Suzuki5563dd30d788
diff --git a/src/element/textWysiwyg.tsx b/src/element/textWysiwyg.tsx
index 97c34dcacf..ecc2be0233 100644
--- a/src/element/textWysiwyg.tsx
+++ b/src/element/textWysiwyg.tsx
@@ -55,6 +55,9 @@ export function textWysiwyg({
}
if (ev.key === KEYS.ENTER) {
ev.preventDefault();
+ if (ev.isComposing || ev.keyCode === 229) {
+ return;
+ }
handleSubmit();
}
};