Эх сурвалжийг харах

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

AUTOMATIC1111 1 жил өмнө
parent
commit
4573195894
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      script.js

+ 1 - 1
script.js

@@ -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();
             }