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
Switch Statement for Greater-Than/Less-Than
Jquery Checkbox Change and Click Event
JavaScript Function Declaration and Evaluation Order
What Benefits Does Es2015 (Es6) 'Class' Syntax Provide
How to Include a JavaScript Script File in Angular and Call a Function from That Script
Convert Column Index into Corresponding Column Letter
Split a String by Commas But Ignore Commas Within Double-Quotes Using JavaScript
Are Variable Operators Possible
Msie and Addeventlistener Problem in JavaScript
Why Can't I Add Properties to a String Object in JavaScript
How to Efficiently Randomly Select Array Item Without Repeats
Unexpected Token Colon JSON After Jquery.Ajax#Get
What Is the Correct Way to Check for String Equality in JavaScript
Controlling Fps with Requestanimationframe
How to Make Exe Files from a Node.Js App