HotKey icon indicating copy to clipboard operation
HotKey copied to clipboard

Is there any support for shortcut view?

Open rampatra opened this issue 4 years ago • 2 comments

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?

rampatra avatar Apr 17 '20 19:04 rampatra

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

sindresorhus avatar Jun 05 '20 14:06 sindresorhus

@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.

rampatra avatar Jun 05 '20 14:06 rampatra