fix: avoid sending composer during IME enter (#2817)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
HuakunandJulius Marminge authored and GitHub committed 2026-06-12 02:14:13 +00:00
1 parent ae39bacf0e
commit d25090cf6d
1 file changed
+6
@@ -910,6 +910,12 @@ function ComposerCommandKeyPlugin(props: {
if (!props.onCommandKeyDown || !event) {
return false;
}
if (key === "Enter" && (event.isComposing || event.keyCode === 229)) {
event.stopPropagation();
return true;
}
const handled = props.onCommandKeyDown(key, event);
if (handled) {
event.preventDefault();