This commit is contained in:
Raphaël Jakse 2020-10-05 21:38:34 +02:00
parent 289d879781
commit 10c8868742
2 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@
divAlert.appendChild(divAlertOuter);
document.body.appendChild(divAlert);
document.body.addEventListener("keydown", function (e) {
if (e.key === 'Escape') {
if (e.key === "Escape") {
promptCancel();
confirmNo();
}

View File

@ -42,7 +42,7 @@
function middle(key) {
const setting = getSetting(key);
return setting[Math.floor(setting.length / 2)]
return setting[Math.floor(setting.length / 2)];
}
setConf("POLLING_DELAY", 2000);
@ -2182,7 +2182,7 @@
document.getElementById("btn-settings-close").onclick = hideSettings;
document.getElementById("next-help-msg").onclick = nextHelpMessage;
window.addEventListener("keydown", function (e) {
if (e.key === 'Escape') {
if (e.key === "Escape") {
document.querySelector(".modal").classList.remove("show-modal");
}
});