From 39392226ec50ebd03f4295bf4cfa9f3727941849 Mon Sep 17 00:00:00 2001 From: Hyunbong Jang <51194127+Brightbong92@users.noreply.github.com> Date: Mon, 12 Oct 2026 22:25:41 +0900 Subject: [PATCH] fix(AiDock): ignore Enter during IME composition The dock input submits on any Enter keydown. With an IME, Enter is also the key that confirms a conversion, so the question is sent while the user is still composing. It also leaves text behind: submitQuestion() clears the field, but the IME commit is still pending, so the committed text lands in the now-empty input. Check event.nativeEvent.isComposing before submitting, matching RetryComposer, DraftBot, CommandPalette, ComposerReferences and ConversationSession. Fixes #1362 --- src/components/AiDock.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AiDock.tsx b/src/components/AiDock.tsx index 91cfcf00b..9ebf15b74 100644 --- a/src/components/AiDock.tsx +++ b/src/components/AiDock.tsx @@ -1989,7 +1989,7 @@ function InputBar({ refine(nextQuery) }} onKeyDown={(event) => { - if (event.key === 'Enter') { + if (event.key === 'Enter' && !event.nativeEvent.isComposing) { event.preventDefault() submitQuestion() }