ayrton / react-key-handler

React component to handle keyboard events :key:
http://ayrton.be/react-key-handler
387 stars 29 forks source link

Alt key with any Alphabet combination is not working #139

Open Archana-B opened 6 years ago

Archana-B commented 6 years ago

<KeyHandler keyValue="i" onKeyHandle={this.someMethod} />

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.

ayrton commented 6 years ago

What happens when the keyEventName is set to `keypress':

<KeyHandler keyEvenName="keypress" keyValue="i" onKeyHandle={this.someMethod} />