Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OnKeyUp event in Android browser for non-latin languages

Android default browser doesn't fire OnKeyUp events on text inputs if user types non-latin characters.

For example http://jsfiddle.net/Hzjhz/. It works for English characters but does not work for Russian and Korean characters.

Are there any ways to avoid the problem?

like image 458
Egor4eg Avatar asked Mar 29 '12 14:03

Egor4eg


1 Answers

I could confirm the issue in my Nexus S phone running ICS. Even though I don't have a direct answer to this, I could suggest you some alternatives.

  1. Try to bind the onBlur event as well and you can check the data that was entered by the user.
  2. Other alternative is to bind a setTimeout on the onfocus event and try to check if the text entered by the user is changed.
like image 145
Sudar Avatar answered Sep 20 '22 06:09

Sudar