Skip to content

Commit

Permalink
Close popups with escape key
Browse files Browse the repository at this point in the history
  • Loading branch information
missionfloyd authored Dec 1, 2023
1 parent c2ed413 commit 01c8f18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javascript/extraNetworks.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
}
});
}

window.addEventListener("keydown", function(event) {
if (event.key == "Escape") {
closePopup();
}
});

0 comments on commit 01c8f18

Please sign in to comment.