| ... | @@ -910,6 +910,12 @@ function ComposerCommandKeyPlugin(props: { | ... | @@ -910,6 +910,12 @@ function ComposerCommandKeyPlugin(props: { |
| 910 | if (!props.onCommandKeyDown || !event) { | 910 | if (!props.onCommandKeyDown || !event) { |
| 911 | return false; | 911 | return false; |
| 912 | } | 912 | } |
| | 913 | |
| | 914 | if (key === "Enter" && (event.isComposing || event.keyCode === 229)) { |
| | 915 | event.stopPropagation(); |
| | 916 | return true; |
| | 917 | } |
| | 918 | |
| 913 | const handled = props.onCommandKeyDown(key, event); | 919 | const handled = props.onCommandKeyDown(key, event); |
| 914 | if (handled) { | 920 | if (handled) { |
| 915 | event.preventDefault(); | 921 | event.preventDefault(); |