Moneymask Does Not Work on Device

Asked

Viewed 111 times

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.

  • 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.

  • 1

    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.

  • I edited the question got better?

  • I’ve had this problem before, exchange Keycode for Keypress and see if it works, I think it is a problem with the Browser.

1 answer

0

I don’t know if you can edit the code of the plugin in question, but if you can, upgrade to keyup or other non-keyboard related event like "change".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.