fix: avoid sending composer during IME enter (#2817)
Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user