Open drosboro opened 6 years ago
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.
this.props.globalBindShortcut('right', this._goToNext)
I've just created pull request #8 with a basic (and seemingly working) implementation.
We had a need for this too -- wondered if @alvinsj had any thoughts on the PR?
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.