1.0.4 ⢠Published 6 years ago
react-hotkeyz v1.0.4
⨠react-hotkeyz
A component that enables registration of hotkeys per z-index.
Before:

With react-hotkeyz:

Install
npm install --save react-hotkeyzOr if you prefer yarn:
yarn add react-hotkeyzQuick Example:
š¤
import { useHotkeys, Hotkeys } from "react-hotkeyz";More examples on https://react-hotkeyz.netlify.com.
Additional information
- Only listeners from current z-index are triggered
- Uses
is-hotkeylib - Only one key press listener is registered
- When there are no active callbacks, event listener is completely removed
- When trying to register the same shortcut on the same z-index, an error will be thrown
- Can be used as a hook or a HOC
Contributors
Thanks goes to these wonderful people (emoji key):
| Adrian Smijuljš» š š” š ā ļø |
|---|
This project follows the all-contributors specification. Contributions of any kind welcome!