From 7ecc38bb6edf7d087d30e737057b8d8a9b7f51eb Mon Sep 17 00:00:00 2001 From: Seungwoo Choe <74454446+seungwoochoe@users.noreply.github.com> Date: Fri, 13 Dec 2024 23:02:06 +0900 Subject: [PATCH] Restore Option key shortcuts for macOS 15.2 and later (#195) --- Sources/KeyboardShortcuts/Shortcut.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/KeyboardShortcuts/Shortcut.swift b/Sources/KeyboardShortcuts/Shortcut.swift index 38902ec..bc5a486 100644 --- a/Sources/KeyboardShortcuts/Shortcut.swift +++ b/Sources/KeyboardShortcuts/Shortcut.swift @@ -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