Commit 4652fc5a authored by AUTOMATIC1111's avatar AUTOMATIC1111

prevent escape button causing an interrupt when no generation has been made yet

parent 310d6b90
......@@ -167,7 +167,7 @@ document.addEventListener('keydown', function(e) {
const lightboxModal = document.querySelector('#lightboxModal');
if (!globalPopup || globalPopup.style.display === 'none') {
if (document.activeElement === lightboxModal) return;
if (interruptButton.style.display !== 'none') {
if (interruptButton.style.display === 'block') {
interruptButton.click();
e.preventDefault();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment