This commit is contained in:
Timothy Jaeryang Baek 2026-10-15 17:42:03 +04:00
parent 9d0aa791ad
commit 8132145936

View file

@ -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