soffes / HotKey

Simple global shortcuts in macOS
MIT License
921 stars 82 forks source link

Is there any support for shortcut view? #23

Open rampatra opened 4 years ago

rampatra commented 4 years ago

This library seems quite easy to use, however, is there any support for key shortcut view like in https://github.com/shpakovski/MASShortcut?

Having a view like this and a callback similar to onKeyShortcutValueChange or something would be great. Right now I have to listen for keyUp/keyDown events explicitly and update the shortcuts. Having the above said callback would make this library even easier to use. Thoughts?

sindresorhus commented 4 years ago

I recently published a package that solves this: https://github.com/sindresorhus/KeyboardShortcuts

rampatra commented 4 years ago

@sindresorhus this is superb. I couldn't find any Swift libraries for Global Key Shortcuts that had a ready to use view so I finally converted MASShortcut into a Swift package and used it in my app. I will surely check this out for my next app, thanks for sharing.

P.S: I will update this repo https://github.com/rampatra/MASShortcut with decent documentation (in Swift) later if anyone wants to use it.