Egor4eg
Egor4eg

Reputation: 2708

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?

Upvotes: 6

Views: 897

Answers (3)

Sergey
Sergey

Reputation: 1

try InputEvent, it works in default Android browser. don't work in chrome

Upvotes: 0

PravinCG
PravinCG

Reputation: 7708

Try Using onKeyMultiple for non latin IME characters. I have not used this for browser but within the application for some other use-case.

You should try this, if it works I will tell the rationale.

Upvotes: 0

Sudar
Sudar

Reputation: 20000

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.

Upvotes: 2

Related Questions