-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Android default browser #368
Comments
Someone has a problem with the stock browser? |
Hi Robin, I've done some debugging, and it seems that the jquery keyup, keydown and keypress events aren't fired on input fields. Example This works fine: Can anyone else confirm this? |
Thx for the feedback! I will have a look. |
Can you sent the useragent string? |
@RobinHerbots Done some more testing today, some masks seem to work, others don't. I'll post a jsfiddle example later. |
I found the problem. If you set the maxlength property of an inputfield as the same length of the mask (or less), none of the keyboard events get fired. Propably because the character is added in the inputfield first, and then the placeholder gets deleted, this would cause the length of the string to be longer then the maxlength, so the events won't fire. This only happens on Android though, no other browsers I've tested seem to have this problem. I made a jsfiddle example: http://jsfiddle.net/4ta2K/ Sorry if I caused any confusion, your plugin does fully work on Android, just don't set the maxlength property :) |
Now they will both work on android stock browser. You can verify in the jsfiddle example. |
Alright, it works now. Thanks for the fix! But I ran into another issue, the auto-suggest or auto-complete feature of the keyboard messes up the mask when typing. If I turn off auto suggest, everything works perfectly. I tried this, but no luck so far. |
I will need to listen to the input event for android devices. For Mobile Chrome it already does. |
I have problem inside Cordova application in Android 2.2 and 2.3.3. I guess it's using default Android browser..? Take a look: http://i.imgur.com/CsFNffw.png I've wrote comment there (maybe I've better wrote it here..?): |
Thx for the feedback. I will have a look at it later. |
Reproduced again. Take a look: |
@Enfree , Are you sure it works under 5.2? Or is just the ime autosuggest disabled? |
@RobinHerbots, Reproducing doesnt depends on autosuggest. |
Many thank. |
No description provided.
The text was updated successfully, but these errors were encountered: