Closed decodism closed 1 year ago
Also adds partial support for macOS 14. Menus have been rewritten and a local event monitor receives keyUp but not keyDown.
Opened an issue: https://github.com/sindresorhus/KeyboardShortcuts/issues/135
Seems to be working well. Thank you :)
I have heard that this still works for observing key events in NSMenu on macOS 14:
let menuObserver = CFRunLoopObserverCreateWithHandler(nil, CFRunLoopActivity.beforeSources.rawValue, true, 0, { (observer, activity)
in
if let event = NSApp.currentEvent { ••• }
})
CFRunLoopAddObserver(CFRunLoopGetCurrent(), menuObserver, CFRunLoopMode.commonModes)
Fixes #129
Also adds partial support for macOS 14. Menus have been rewritten and a local event monitor receives keyUp but not keyDown.