diff --git a/src/lib/components/channel/MessageInput.svelte b/src/lib/components/channel/MessageInput.svelte index e257695043..22e2891c6f 100644 --- a/src/lib/components/channel/MessageInput.svelte +++ b/src/lib/components/channel/MessageInput.svelte @@ -1077,6 +1077,9 @@ }} on:keydown={async (e) => { e = e.detail.event; + // IME confirmation must finish before a shortcut can send and clear the editor. + if (e.isComposing || e.keyCode === 229 || inputEditor?.view.composing) return; + const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac const suggestionsContainerElement =