Open Archana-B opened 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.
What happens when the keyEventName is set to `keypress':
keyEventName
<KeyHandler keyEvenName="keypress" keyValue="i" onKeyHandle={this.someMethod} />
<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.