fix(ui): prevent unwanted key events during composition in LineCommentEditor (#16361)

This commit is contained in:
Hoshiumi Arata 2026-03-07 02:01:13 +09:00 committed by GitHub
parent 5e699c9426
commit e9568999c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()