diff options
Diffstat (limited to 'src/app/main.js')
-rw-r--r-- | src/app/main.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app/main.js b/src/app/main.js index 97937a9..db3514b 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -275,6 +275,13 @@ document.addEventListener("drop", (e) => { installFromPath(event.dataTransfer.files[0].path) }); +document.body.addEventListener("keyup", (e) => { + if (e.key == "Escape") { + Browser.toggle(false); + Settings.toggle(false); + } +}) + document.body.addEventListener("click", event => { if (event.target.tagName.toLowerCase() === "a" && event.target.protocol != "file:") { event.preventDefault(); |