Skip to content

Commit

Permalink
Exit on escape.
Browse files Browse the repository at this point in the history
  • Loading branch information
MitjaBezensek committed Nov 27, 2023
1 parent 2f7a84b commit b6d3999
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/CodeEditor/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export const CodeEditor = track(() => {
},
})
setIsSaving(false)
} else if (e.key === 'Escape') {
showingEditor.set(false)
}
}}
>
Expand Down

0 comments on commit b6d3999

Please sign in to comment.