mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-14 17:33:22 +00:00
fix(app): fix issue with scroll jumping when pressing escape in comment text area (#15374)
This commit is contained in:
parent
18fb19da3b
commit
34328828ae
1 changed files with 1 additions and 0 deletions
|
|
@ -244,6 +244,7 @@ export const LineCommentEditor = (props: LineCommentEditorProps) => {
|
|||
event.stopPropagation()
|
||||
if (e.key === "Escape") {
|
||||
event.preventDefault()
|
||||
e.currentTarget.blur()
|
||||
split.onCancel()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue