Skip to content

Commit

Permalink
chore: fix closing ContextMenu using Escape also closing JSONEditorModal
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Jul 26, 2024
1 parent 7d6427e commit 814a09d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/components/modals/popup/AbsolutePopupEntry.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
function handleKeyDown(event: KeyboardEvent) {
const combo = keyComboFromEvent(event)
if (combo === 'Escape') {
event.preventDefault()
event.stopPropagation()
closeAbsolutePopup(popup.id)
}
}
Expand Down

0 comments on commit 814a09d

Please sign in to comment.