Skip to content

Commit

Permalink
Restore Option key shortcuts for macOS 15.2 and later (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
seungwoochoe authored Dec 13, 2024
1 parent 323d9f8 commit 7ecc38b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/KeyboardShortcuts/Shortcut.swift
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ extension KeyboardShortcuts.Shortcut {
Check whether the keyboard shortcut is disallowed.
*/
var isDisallowed: Bool {
let osVersion = ProcessInfo.processInfo.operatingSystemVersion

guard
#available(macOS 15, *),
osVersion.majorVersion == 15,
osVersion.minorVersion == 0 || osVersion.minorVersion == 1,
Constants.isSandboxed
else {
return false
Expand Down

0 comments on commit 7ecc38b

Please sign in to comment.