Merge pull request #2587 from dannycolin/issue2553-shortcut-preventdefault
Revert monitoring modifier in popup shortcuts
This commit is contained in:
+1
-10
@@ -420,16 +420,7 @@ const Logic = {
|
|||||||
isSearchInputFocused = true;
|
isSearchInputFocused = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// We also monitor if a modifier key is pressed simultaneously with a digit
|
if (Logic._currentPanel === "containersList" && !isSearchInputFocused) {
|
||||||
// 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) {
|
|
||||||
switch(e.code) {
|
switch(e.code) {
|
||||||
case "Digit0":
|
case "Digit0":
|
||||||
case "Digit1":
|
case "Digit1":
|
||||||
|
|||||||
Reference in New Issue
Block a user