fix: shortcut would not register if capslock was on (closes #493)
This commit is contained in:
1 parent
2a0adf0ea0
commit
9db0fe40a0
1 file changed
+1
-1
@@ -62,7 +62,7 @@ private func shortcutThatMatches(_ event: NSEvent, _ type: CGEventType) -> Strin
|
||||
}
|
||||
} else if event.sr_keyEventType == .down && (shortcut.keyCode == .none || event.keyCode == shortcut.carbonKeyCode) {
|
||||
if shortcutId.hasPrefix("nextWindowShortcut") {
|
||||
if event.modifierFlags.intersection(.deviceIndependentFlagsMask) == shortcut.modifierFlags &&
|
||||
if event.modifierFlags.intersection(.deviceIndependentFlagsMask).subtracting(.capsLock) == shortcut.modifierFlags &&
|
||||
(!App.app.appIsBeingUsed || shortcutId == "nextWindowShortcut" + postfix) {
|
||||
return shortcutId
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user