Repository navigation
SutraKey v1.0.4
SutraKey v1.0.4 (macOS)
Fixed
- App Reopen & Foreground Activation (
LSUIElement = 1): Resolved an issue where double-clicking the app in Finder/Spotlight or clicking [Quit & Reopen] in macOS System Settings after granting permissions produced no visual response. ImplementedapplicationShouldHandleReopen(_:hasVisibleWindows:)andapplicationOpenUntitledFile(_:)inAppDelegateto summon and bring the Settings window to the front viaorderFrontRegardless()andNSApp.activate(ignoringOtherApps: true). - First-Launch & Permission Guidance Window: Ensured users receive immediate visual cues and setup instructions on first launch or when Accessibility permissions are not yet granted (
AXIsProcessTrusted() == false), automatically presenting the configuration window instead of running purely invisibly. - Menu Bar Icon Bounds & Notch Overflow Prevention: Enforced fixed
18×18point bounds across all menu bar icon representations (MenuBarIcon.templateImage, custom assets, and SF Symbols) to prevent status item clipping or hiding behind MacBook camera notches. Pinned idle menu item width strictly toNSStatusItem.squareLength(switching to variable length only while actively rendering download progress). - Safe Event Dispatch & Native Menu Popups: Replaced deprecated menu assignment and simulated clicks in
EphemeralStatusBarControllerwith nativeNSMenu.popUp(positioning:at:in:)and wrappedNSApp.currentEventsafely to eliminate force-unwrap crashes. - Shortcut Recorder Event Monitor Leak Fix: Refactored shortcut recording from SwiftUI struct view
@Stateinto a centralized@MainActor final classreference coordinator (ShortcutRecorderCoordinator), eliminating localNSEventmonitor memory leaks on view re-renders. Added clean monitor lifecycle teardown inSettingsView.onDisappear. - Carbon Global HotKey Concurrency: Added thread-safe
NSLocksynchronization around Carbon hotkey registration and unregistration inGlobalHotKeyManager, preventing race conditions during hotkey reloading.
Added
- Configurable Global Radial Shortcut: Added full support for customizing the system-wide radial trigger shortcut (defaulting to
⌘⇧S) in Settings → General with an interactive key recorder, error validation, and reset-to-default button. - Space & Special Key Parsing: Added support for recording Space (
kVK_Space, key code 49), Return, Tab, and Arrow keys with human-friendly glyph formatting. - Modifier Key Validation: Strictly required at least one modifier key (
⌘,⌥,⌃,⇧) for custom shortcuts, rejecting bare alphanumeric or symbol keys to protect system typing. - Automated Test Suite: Added unit test suite
ShortcutRecorderAndReopenTests.swiftvalidating shortcut recording, key code formatting, modifier persistence, and window reuse.
📦 Installation Options
Homebrew Cask (Recommended)
brew install --cask halcyon-past/tap/sutrakeyDirect DMG & Auto-Update Package
- 🍎 Universal DMG:
SutraKey-v1.0.4.dmg - 📦 ZIP Archive:
SutraKey-v1.0.4.zip
Requires macOS 14.0 Sonoma or later on Apple Silicon & Intel.