Close popups with escape key
This commit is contained in:
parent
c2ed413203
commit
01c8f1803a
|
@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("keydown", function(event) {
|
||||
if (event.key == "Escape") {
|
||||
closePopup();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue