This commit is contained in:
cay 2026-04-06 16:37:24 +01:00
parent ae3e0033cf
commit e2fb43139f

View File

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