fixes for 90
This commit is contained in:
parent
a9e9b24650
commit
1d69fa16a2
1 changed files with 9 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue