From 0f40ecfdf1d351762e6b0bc525b3d716756c5643 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Thu, 20 Jun 2024 00:04:00 +0200 Subject: fixed Escape closing popups when inputs are active --- src/app/js/dom_events.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/app/js/dom_events.js') diff --git a/src/app/js/dom_events.js b/src/app/js/dom_events.js index ab79c57..490d2ec 100644 --- a/src/app/js/dom_events.js +++ b/src/app/js/dom_events.js @@ -26,12 +26,6 @@ document.addEventListener("drop", (e) => { mods.install_from_path(e.dataTransfer.files[0].path); }) -document.body.addEventListener("keyup", (e) => { - if (e.key == "Escape") { - popups.hide_last(); - } -}) - document.body.addEventListener("click", (e) => { if (e.target.tagName.toLowerCase() === "a" && e.target.protocol != "file:") { -- cgit v1.2.3