react-key-handler icon indicating copy to clipboard operation
react-key-handler copied to clipboard

React component to handle keyboard events :key:

Results 7 react-key-handler issues
Sort by recently updated
recently updated
newest added

Any interest/intentions towards a typescript implementation?

The 2 key combination works well. e.g. ctrl+A, ctrl+C but when press key ctrl + shift + A It only files event: event.ctrlKey ===true + event.keyCode === shiftLeft But what...

I've found that if the parent components props/state changes when an event is fired it will re-trigger the same event, i.e. firing twice. To be more specific, it happened when...

I have a component that contains this: ``` ``` So, when i make multiple instances of my React component that contains this, I'm finding that `onKeyHandler` fires for ALL when...

`` someMethod(event) { console.log(event.altKey); } someMethod is not getting invoked when pressing alt + i where as alt works fine with special keys like Arrows, function keys etc.

We need to add support to listen to more than one key code, e.g.: ``` js const A = 65; const B = 66; keyHandler({ keyCodes: [A, B] })(MyComponent); ```...

enhancement
help wanted

As of right now a component that gets wrapped by `keyHandler` has to expect `keyValue`, etc being passed down. That causes the component to be coupled with `keyHandler` if all...