mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
Close popups with escape key
This commit is contained in:
parent
c2ed413203
commit
01c8f1803a
1 changed files with 6 additions and 0 deletions
|
|
@ -392,3 +392,9 @@ function extraNetworksRefreshSingleCard(page, tabname, name) {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener("keydown", function(event) {
|
||||
if (event.key == "Escape") {
|
||||
closePopup();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue