Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alt key with any Alphabet combination is not working #139

Open
Archana-B opened this issue Nov 23, 2017 · 1 comment
Open

Alt key with any Alphabet combination is not working #139

Archana-B opened this issue Nov 23, 2017 · 1 comment

Comments

@Archana-B
Copy link

Archana-B commented Nov 23, 2017

<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
Copy link
Owner

ayrton commented Nov 28, 2017

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants