fixes for 90

This commit is contained in:
MathMan05 2025-03-20 13:25:10 -05:00
parent a9e9b24650
commit 1d69fa16a2

View file

@ -1431,13 +1431,18 @@ class Settings extends Buttons {
exit.onclick = (_) => {
this.hide();
};
onkeyup = (event) => {
background.addEventListener("keyup", (event) => {
if (event.key === "Escape") {
event.preventDefault();
event.stopImmediatePropagation();
// Cancel the default action, if needed
this.hide()
}
}
this.hide();
}
});
document.body.append(background);
background.setAttribute("tabindex", "0");
background.focus();
this.html = background;
}
hide() {