Close popups with escape key

This commit is contained in:
missionfloyd 2023-11-30 22:36:12 -07:00 committed by GitHub
parent c2ed413203
commit 01c8f1803a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
}
});
}
window.addEventListener("keydown", function(event) {
if (event.key == "Escape") {
closePopup();
}
});