cocoabits / MASShortcut

Modern framework for managing global keyboard shortcuts compatible with Mac App Store. More details:
http://blog.shpakovski.com/2012/07/global-keyboard-shortcuts-in-cocoa.html
BSD 2-Clause "Simplified" License
1.52k stars 220 forks source link

How to binding custom shortcut on MASShortcutView ? #163

Open raviparsania opened 3 years ago

raviparsania commented 3 years ago

Hello

In my application have import/export feature. So while export I have to make dictionary with include key, modifier and DefaultsKey (Identifier for every item).

While import the data that time I have register all the shortcut using following method and it work fine

[[MASShortcutMonitor sharedMonitor] registerShortcut:shortcut withAction:^{
        // Action
}];

But not showing registered shortcut on MASShortcutView. Is there any method to bind shortcut on MASShortcutView ?