From 8132145936eb6f640fd7a78710bc965a8e338b03 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 15 Oct 2026 17:42:03 +0400 Subject: [PATCH] refac --- src/lib/components/channel/MessageInput.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/components/channel/MessageInput.svelte b/src/lib/components/channel/MessageInput.svelte index 22e2891c6f..0f0366fcf3 100644 --- a/src/lib/components/channel/MessageInput.svelte +++ b/src/lib/components/channel/MessageInput.svelte @@ -1078,7 +1078,8 @@ 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; + if (e.isComposing || e.keyCode === 229 || inputEditor?.view.composing) + return; const isCtrlPressed = e.ctrlKey || e.metaKey; // metaKey is for Cmd key on Mac