Skip to content
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

Mask doesn't update on Windows 8 mobile or Blackberry playbook #213

Closed
gavmck opened this issue Apr 18, 2013 · 13 comments
Closed

Mask doesn't update on Windows 8 mobile or Blackberry playbook #213

gavmck opened this issue Apr 18, 2013 · 13 comments
Labels
Milestone

Comments

@gavmck
Copy link

gavmck commented Apr 18, 2013

When typing into a masked text input on Windows 8 mobile or Blackberry Playbook, the mask stays as per the original and doesn't remove itself as you type until you exit the field.

Have tried manually triggering keyup, keydown, keypress and change using a setInterval running whilst focused in the field, but seems to have no effect. Which event is updating the mask bound to?

@gavmck
Copy link
Author

gavmck commented Apr 18, 2013

Just noticed same issue on Opera mobile on Android Nexus 4

@RobinHerbots
Copy link
Owner

@gavmck ,

I don't own a win8 mobile device or blackberry, ... so to solve this I need more info.

Can I download a virtual win8 mobile device emulator and a blackbarry one? Can you submit the useragent string per device? I will test the opera on android.

best regards,

Robin

@gavmck
Copy link
Author

gavmck commented Apr 18, 2013

Hey thanks for the fast reply! Great plugin by the way.

The windows 8 emulator is packaged up in the windows mobile SDK which you can grab here I think: http://dev.windowsphone.com/en-us/downloadsdk

I'll go find a blackberry emulator next. Will get the UA strings tomorrow as they're office test devices.

Thanks

@gavmck
Copy link
Author

gavmck commented Apr 18, 2013

Do you have another tablet available? This appears to run a blackberry VM http://www.softpedia.com/get/Programming/Other-Programming-Files/BlackBerry-Playbook-Simulator.shtml

@gavmck
Copy link
Author

gavmck commented Apr 19, 2013

Doing some testing over here today.

It appears Opera Mobile, Blackberry playbook and the Windows 8 mobile are not firing the onkeypress event.
Checked for support and they all say that they support onkeypress in my input.

Windows 8 mobile fires the keyup event
Opera Mobile fires a keyup event onfocus, but nothing after that. Just updates onblur
Playbook doesn't fire keyup or keypress

Will update with more info as I get it

@gavmck
Copy link
Author

gavmck commented Apr 19, 2013

Strangely all browsers return true for: 'onkeypress' in document.createElement('input');

@gavmck
Copy link
Author

gavmck commented Apr 19, 2013

Scratch that Opera fires keypress events after the mask area but not in it.

@sompylasar
Copy link

Just a thought. The "keypress" event might be present in the object because
of the standard and/or because a real keyboard may be somehow connected to
a Windows 8 device. But it never fires because the virtual onscreen
keyboard may generate input another way, e.g. paste a whole word from the
dictionary. AFAIK, there is the "input" event for these cases (inspect the
Google Search input for its DOM event handlers).

@RobinHerbots
Copy link
Owner

@gavmck , @sompylasar ,

I tested a bit for Opera mobile on android. keydown, keypress, keyup get fired, but I cannot prevent the input by preventdefault or return false; also the caretpositioning is not working at all.

Robin

@gavmck
Copy link
Author

gavmck commented Apr 22, 2013

Been doing more Windows Mobile testing today.

JS can't seem to get past the .setValue() call in the keypressEvent function. I had to manually call keypressEvent(e) from the keyDownEvent function as keypress doesn't fire on that device. It seems that it's not possible to update the value of the input whilst typing in it.

@RobinHerbots
Copy link
Owner

@gavmck,

This evening I will download the wp8 sdk and give it a try. Propably there is another js error which prevents the creation of the _setValue fn, ... an so fails further in the event.

@RobinHerbots
Copy link
Owner

@gavmck ,

I will continure for the blackberry as the win8 phone sdk required windows 8.

http://developer.blackberry.com/devzone/develop/simulator/sim_index.html for the simulator

@RobinHerbots
Copy link
Owner

@gavmck ,

I just tested the latest version with the Blackbarry 10 Simulator and it all worked fine. I tried with the "soft"-keyboard and with the hardware keyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants