fixes for 90
This commit is contained in:
@@ -1431,13 +1431,18 @@ class Settings extends Buttons {
|
|||||||
exit.onclick = (_) => {
|
exit.onclick = (_) => {
|
||||||
this.hide();
|
this.hide();
|
||||||
};
|
};
|
||||||
onkeyup = (event) => {
|
background.addEventListener("keyup", (event) => {
|
||||||
if (event.key === "Escape") {
|
if (event.key === "Escape") {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopImmediatePropagation();
|
||||||
// Cancel the default action, if needed
|
// Cancel the default action, if needed
|
||||||
this.hide()
|
this.hide();
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
document.body.append(background);
|
document.body.append(background);
|
||||||
|
background.setAttribute("tabindex", "0");
|
||||||
|
background.focus();
|
||||||
|
|
||||||
this.html = background;
|
this.html = background;
|
||||||
}
|
}
|
||||||
hide() {
|
hide() {
|
||||||
|
Reference in New Issue
Block a user