5
The Jquery Plugin does not work on device, someone would know how to fix it?
The point is, I researched about why the plugin Moneymask not work within the device and found that the plugins mask use the event Keydown
that returns an object that contains the following element:
event.Keycode
Always returns 0 on Android 4.0+ the plugin does not work. Someone would know how to solve?
Friend actually there is no code to show because the plugin works normally in the browser.
– Luk Simões
Well, I searched for questions and problems, I found nothing related to not working outside browsers. Edith your question and include more details (if possible, the code), try to make it more specific and relevant to other users who (maybe) have the same problem in the future. - How to ask.
– Renan Gomes
Friend I searched and tested and found out the following... moneyMask and other maskaras use the Keydown method of javascript, it is necessary to identify which key is being used recognizing it with Event.keycode but in android 4.0+ it does not provide this parameter for you thus making the plugin does not work.
– Luk Simões
I edited the question got better?
– Luk Simões
I’ve had this problem before, exchange Keycode for Keypress and see if it works, I think it is a problem with the Browser.
– PauloHDSousa