react-mousetrap
react-mousetrap copied to clipboard
HOC for Mousetrap
My quick-and-dirty effort at adding support for the mousetrap global-bind plugin. I'm new-ish to npm and new to jest, so I didn't successfully work out how to add tests; however,...
I noticed that the 0.2.0 version of this package has a new peer dependency: `react-polyfills`. That package actually seems to be empty, and has very few installs on npm. Is...
It would be great to have the "global-bind" plugin / methods available within react-mousetrap, so that something like `this.props.globalBindShortcut('right', this._goToNext)` would provide mousetrap bindings that work within input fields.
Is it possible to add support for `kepress`, `keyup` and `keydown` parameters like in the main mousetrap package?