From e9568999c385242756c2ea3530560481cf97999d Mon Sep 17 00:00:00 2001 From: Hoshiumi Arata <9303565+hoshiumiarata@users.noreply.github.com> Date: Sat, 7 Mar 2026 02:01:13 +0900 Subject: [PATCH] fix(ui): prevent unwanted key events during composition in LineCommentEditor (#16361) --- packages/ui/src/components/line-comment.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/ui/src/components/line-comment.tsx b/packages/ui/src/components/line-comment.tsx index 6a247990b..73d83f7d7 100644 --- a/packages/ui/src/components/line-comment.tsx +++ b/packages/ui/src/components/line-comment.tsx @@ -240,6 +240,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => { }} on:keydown={(e) => { const event = e as KeyboardEvent + if (event.isComposing || event.keyCode === 229) return event.stopPropagation() if (e.key === "Escape") { event.preventDefault()