Skip to content

Commit 1e3ada4

Browse files
fix(ui): prevent unwanted key events during composition in LineCommentEditor (anomalyco#16361)
1 parent fb4fbe2 commit 1e3ada4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/ui/src/components/line-comment.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => {
240240
}}
241241
on:keydown={(e) => {
242242
const event = e as KeyboardEvent
243+
if (event.isComposing || event.keyCode === 229) return
243244
event.stopPropagation()
244245
if (e.key === "Escape") {
245246
event.preventDefault()

0 commit comments

Comments
 (0)