From 77ffc7ae5b80565a5b05c0ba316c77320fcddf55 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 15 Jun 2024 23:18:00 +0200 Subject: added popups.hide_last() and popups.open_list This will be particularly useful for #239 --- src/app/js/dom_events.js | 4 ++-- 1 file changed, 2 insertions(+), 2 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 c16a838..ab79c57 100644 --- a/src/app/js/dom_events.js +++ b/src/app/js/dom_events.js @@ -1,3 +1,4 @@ +const popups = require("./popups"); const settings = require("./settings"); let drag_timer; @@ -27,8 +28,7 @@ document.addEventListener("drop", (e) => { document.body.addEventListener("keyup", (e) => { if (e.key == "Escape") { - browser.toggle(false); - settings.popup.toggle(false); + popups.hide_last(); } }) -- cgit v1.2.3