fix(app): fix issue with scroll jumping when pressing escape in comment text area (#15374)

pull/16503/merge
Yihui Khuu 2026-03-09 20:59:24 +11:00 committed by GitHub
parent 18fb19da3b
commit 34328828ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -244,6 +244,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => {
event.stopPropagation()
if (e.key === "Escape") {
event.preventDefault()
e.currentTarget.blur()
split.onCancel()
return
}