zhkxdrz
This commit is contained in:
parent
ae3e0033cf
commit
e2fb43139f
@ -113,6 +113,9 @@ document.querySelectorAll(".qm-popup-close").forEach((btn) => {
|
||||
overlay.addEventListener("click", closeAllPopups);
|
||||
|
||||
function closeAllPopups() {
|
||||
// Booster läuft noch → Schließen komplett sperren
|
||||
if (window.__boosterLocked) return;
|
||||
|
||||
document.querySelectorAll(".qm-popup").forEach((p) => {
|
||||
p.classList.remove("active");
|
||||
});
|
||||
@ -120,5 +123,13 @@ function closeAllPopups() {
|
||||
}
|
||||
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if (e.key === "Escape") closeAllPopups();
|
||||
if (e.key === "Escape") {
|
||||
// Booster läuft noch → ESC blockieren
|
||||
if (window.__boosterLocked) {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
closeAllPopups();
|
||||
}
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user