Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any support for shortcut view? #23

Open
rampatra opened this issue Apr 17, 2020 · 2 comments
Open

Is there any support for shortcut view? #23

rampatra opened this issue Apr 17, 2020 · 2 comments

Comments

@rampatra
Copy link

rampatra commented Apr 17, 2020

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
Copy link

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

@rampatra
Copy link
Author

rampatra commented Jun 5, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants