How to handle shortcut in AppKit

Issue #408

Podfile

1
pod 'MASShortcut'
1
2
3
4
5
let shortcut = MASShortcut(keyCode: kVK_ANSI_K, modifierFlags: [.command, .shift])

MASShortcutMonitor.shared()?.register(shortcut, withAction: {
self.showPopover(sender: self.statusItem.button)
})

Comments