How to handle shortcut in AppKit

Issue #408

Podfile

pod 'MASShortcut'
let shortcut = MASShortcut(keyCode: kVK_ANSI_K, modifierFlags: [.command, .shift])

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

I’m open source contributor, writer, speaker and product maker.

Start the conversation