mirror of
https://github.com/anapnoe/stable-diffusion-webui-ux.git
synced 2026-09-17 08:19:50 +02:00
Close popups with escape key
This commit is contained in:
@@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("keydown", function(event) {
|
||||
if (event.key == "Escape") {
|
||||
closePopup();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user