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

Feat: Expose descriptions for currently-bound hotkeys. #972

Merged

Conversation

zenzen-sol
Copy link
Contributor

This PR exposes the description option in the hotkeys array returned by useHotkeysContext(). Helpful if you want to display a list of currently-active hotkeys to the user.

@vercel
Copy link

vercel bot commented Mar 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
react-hotkeys-hook ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 19, 2023 at 10:06AM (UTC)

@zenzen-sol zenzen-sol changed the title feat: expose descriptions for currently-bound hotkeys Feat: Expose descriptions for currently-bound hotkeys. Mar 8, 2023
@JohannesKlauss
Copy link
Owner

Please add a test that tests the behavior, other than that it looks good!

@OneStepCloser
Copy link

OneStepCloser commented Mar 15, 2023

I was about to embed the library into our project and I must say, that this feature of providing description would be really helpful for our case. Looking forward to this MR to be merged. 🙏

@zenzen-sol
Copy link
Contributor Author

Sure. I'll add a test ASAP.

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

Successfully merging this pull request may close these issues.

3 participants