braintree / restricted-input

Restrict <input>s to certain valid characters (e.g. formatting phone or card numbers)
https://braintree.github.io/restricted-input/
MIT License
68 stars 25 forks source link

Perma-characters must be manually deleted on older Android devices #4

Closed crookedneighbor closed 8 years ago

crookedneighbor commented 8 years ago

To reproduce open this page a Galaxy S3/S5/S7 and type using the default virtual keyboard in the default browser. https://crookedneighbor.github.io/restricted-input-android-formatting-bug/

When deleting the characters, you have to manually delete the spaces. This happens because older Android devices don't emit the backspace key on the keypress event.

crookedneighbor commented 8 years ago

We tried a few different approaches to get this working, but ended up deciding to make this a wont-fix and close it.

Pertinent details: