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

Key events in Chrome for Android #4079

Closed
MattKunze opened this issue Jun 10, 2015 · 2 comments
Closed

Key events in Chrome for Android #4079

MattKunze opened this issue Jun 10, 2015 · 2 comments

Comments

@MattKunze
Copy link

I must be missing something pretty trivial, but I can't get key handler events working in Android Chrome. Here's a jsfiddle that reproduces the behavior I'm seeing: https://jsfiddle.net/waLcu83e/1/

Everywhere but Android Chrome I get the desired results when typing in the input:

image

On Android the events are different/wrong:

image

  • ev.which is 229 (or 0 on some devices) for all the events
  • onKeyPress isn't fired
  • If the first character typed is a number, the events are correct
  • Moving the handlers to the input element behaves the same

The stock browser in the emulator seems to work fine, iOS, etc as well. Like I said, I imagine there must be some simple mistake but I sure don't see what it is

@MattKunze
Copy link
Author

React 0.13.3 fwiw

@MattKunze
Copy link
Author

Seems like this is a limitation/bug in Chrome: https://code.google.com/p/chromium/issues/detail?id=118639

Seems pretty crazy that the keyboard events deviate from the behavior of pretty much every other platform, but I guess that's not React's cross to bear.

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

1 participant