Revert monitoring modifier in popup shortcuts
This commit is contained in:
parent
bea1cdcf87
commit
6a9afcf266
1 changed files with 1 additions and 10 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Reference in a new issue