From 556093b05b7e33031e86d8905c565cfebee340d9 Mon Sep 17 00:00:00 2001 From: Koyukopan <208583135+Koyukopan@users.noreply.github.com> Date: Mon, 7 Sep 2026 22:09:36 +0900 Subject: [PATCH] fix: prevent free-text submission during IME composition for question box --- .../browser/frontend/src/components/Chat/QuestionBox.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/ui_layer/browser/frontend/src/components/Chat/QuestionBox.tsx b/app/ui_layer/browser/frontend/src/components/Chat/QuestionBox.tsx index d8031d17..8b461dad 100644 --- a/app/ui_layer/browser/frontend/src/components/Chat/QuestionBox.tsx +++ b/app/ui_layer/browser/frontend/src/components/Chat/QuestionBox.tsx @@ -89,7 +89,11 @@ export function QuestionBox({ question, queueTotal, onAnswer, onDismiss }: Quest value={text} onChange={e => setText(e.target.value)} onKeyDown={e => { - if (e.key === 'Enter') { + if ( + e.key === 'Enter' && + !e.shiftKey && + !e.nativeEvent.isComposing + ) { e.preventDefault() submit(text) }