Skip to content

Commit

Permalink
Fix logic for .globalKeyboardShortcut() (#193)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <[email protected]>
  • Loading branch information
cweider and sindresorhus authored Dec 7, 2024
1 parent db50681 commit 323d9f8
Show file tree
Hide file tree
Showing 3 changed files with 532 additions and 118 deletions.
2 changes: 1 addition & 1 deletion Sources/KeyboardShortcuts/NSMenuItem++.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ extension NSMenuItem {
return
}

keyEquivalent = shortcut.keyEquivalent
keyEquivalent = shortcut.keyEquivalent ?? ""
keyEquivalentModifierMask = shortcut.modifiers

if #available(macOS 12, *) {
Expand Down
Loading

0 comments on commit 323d9f8

Please sign in to comment.