summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHoshiumi Arata <[email protected]>2026-03-07 02:01:13 +0900
committerGitHub <[email protected]>2026-03-06 11:01:13 -0600
commite9568999c385242756c2ea3530560481cf97999d (patch)
tree1256d646987a9ab3ca4a9e6e339fd21e367890d5
parent5e699c9426223409bd237174446d3abb88edb8cb (diff)
downloadopencode-e9568999c385242756c2ea3530560481cf97999d.tar.gz
opencode-e9568999c385242756c2ea3530560481cf97999d.zip
fix(ui): prevent unwanted key events during composition in LineCommentEditor (#16361)
-rw-r--r--packages/ui/src/components/line-comment.tsx1
1 files changed, 1 insertions, 0 deletions
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()