react-hotkeys-hook
react-hotkeys-hook copied to clipboard
Record Shortcuts (Map Input Event to shortcut string)
First of all: GREAT project!!!! Thank you soo much!
Could you provide function to be used to record a shortcut? A function to be called on an Input Field onChange, returning the shortcut string understandable by useHotkeys() i.e. 'ctrl+alt+y'
So users can map their own shortcut in frontend?
Sorry for this bad english, I hope you can still somehow understand me
Gratefully Blade (YeonV)
That sounds like a nice additional feature. I put it up on the roadmap to V4, but might land in 4.1 First I'd like to finally finish the major release.
Yooo @JohannesKlauss :) https://yeonv.github.io/io/
works like a charm!
if you wanna use some of my noob coding: https://github.com/YeonV/io
This feature landed in 4.2.0: https://github.com/JohannesKlauss/react-hotkeys-hook/releases/tag/v4.2.0