Skip to content

Commit

Permalink
fix: the ui would not hide if capslock was active (closes #551)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Aug 25, 2020
1 parent 8ad03a5 commit b4b82b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logic/events/KeyboardEvents.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b4b82b2

Please sign in to comment.