A global Hotkey provider with built in tooltip for React
A global Hotkey provider with built in tooltip for React.
React Hotkey Tooltip
Why you should use it?
When working with hotkeys in a React application we will find many problems when trying to implement it:
- Hotkeys are only accesible inside a specific component (not globally).
- Must take care of the hotkeys manually throughout the life cycle.
- Have to provide a way so the user can see all the hotkeys on the screen.
This library will help you by declaring global hotkeys that automatically will be updated by any life cycle of the component and show a tooltip by pressing a combination of keys ✨
Why mess up with document.addEventListener or positioning/styling tooltips if there are a lot of open source libraries that can do that for me. This are the chosen ones!
- mousetrap: to bind and unbind hotkeys globally