From 6a9afcf2663d398a1542b13c7d35a970f8977a24 Mon Sep 17 00:00:00 2001 From: Danny Colin Date: Fri, 13 Oct 2023 14:45:32 -0400 Subject: [PATCH] Revert monitoring modifier in popup shortcuts --- src/js/popup.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index d84c34d..c84efb6 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -420,16 +420,7 @@ const Logic = { isSearchInputFocused = true; } - // We also monitor if a modifier key is pressed simultaneously with a digit - // between 0-9 to avoid conflicts with Firefox or other addons. - let isModifierPressed = false; - - if (e.altKey || e.shiftKey || e.ctrlKey || e.metaKey) { - isModifierPressed = true; - e.preventDefault(); - } - - if (Logic._currentPanel === "containersList" && !isModifierPressed && !isSearchInputFocused) { + if (Logic._currentPanel === "containersList" && !isSearchInputFocused) { switch(e.code) { case "Digit0": case "Digit1":