Keycode on Android Is Always 229

Android keyboard keypress not returning anything & keydown returning 229

keypress event is no longer supported by browsers

When using virtual/mobile keyboards, formally known as IME (Input-Method Editor), the W3C standard states that a KeyboardEvent’s e.keyCode should be 229 and e.key should be "Unidentified".

source: https://javascript.info/keyboard-events#mobile-keyboards

Javascript onKeyPress key code always 0 on Android

I have also the same issue. Its with Android bug.

https://code.google.com/p/android/issues/update.do?id=68284#makechanges

JQuery Mask input plugin on android (Samsung Galaxy), the keyCode returned is always 229

I could not found clear workaround this issue yet, except excluding the mask if the OS is android (old versions and 4.2.2 ), plus windows Mobile and operating systems which I did not test this feature on, as I can not be user it will work there also.

   if (!navigator.userAgent.match(/(Android (1.0|1.1|1.5|1.6|2.0|2.1|4.2.2))|(Windows Phone (OS  7|8.0))|(XBLWP)|(ZuneWP)|(w(eb)?OSBrowser)|(webOS)|(Kindle\/(1.0|2.0|2.5|3.0))/)) {
$(value).mask("999-99-999999?99", {"placeholder": "x"});
}


Related Topics



Leave a reply



Submit