fix: the ui would not hide if capslock was active (closes #551)
This commit is contained in:
1 parent
8ad03a5976
commit
b4b82b24c6
1 file changed
+1
-1
@@ -102,7 +102,7 @@ fileprivate func handleHotModifier(_ modifiers: UInt32) -> Bool {
|
||||
if value.keyCode != .none { continue }
|
||||
let shortcutIndex = KeyboardEvents.globalShortcuts[key]!
|
||||
// modifiers down
|
||||
if value.carbonModifierFlags == modifiers {
|
||||
if modifiers == value.carbonModifierFlags || modifiers == value.carbonModifierFlags | UInt32(alphaLock) {
|
||||
if key.hasPrefix("holdShortcut") {
|
||||
KeyboardEvents.holdShortcutWasDown[shortcutIndex] = true
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user