From 426b16987a3d9eb4a727dbec263bab70f98c40c1 Mon Sep 17 00:00:00 2001 From: Ken Shimizu Date: Wed, 11 Mar 2026 11:57:46 +0900 Subject: [PATCH] fix(ui): prevent IME composition Enter from moving focus in new issue title --- ui/src/components/NewIssueDialog.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ui/src/components/NewIssueDialog.tsx b/ui/src/components/NewIssueDialog.tsx index 9a9076bc..79adf888 100644 --- a/ui/src/components/NewIssueDialog.tsx +++ b/ui/src/components/NewIssueDialog.tsx @@ -681,7 +681,12 @@ export function NewIssueDialog() { e.target.style.height = `${e.target.scrollHeight}px`; }} onKeyDown={(e) => { - if (e.key === "Enter" && !e.metaKey && !e.ctrlKey) { + if ( + e.key === "Enter" && + !e.metaKey && + !e.ctrlKey && + !e.nativeEvent.isComposing + ) { e.preventDefault(); descriptionEditorRef.current?.focus(); }