andr-04 / inputmask-multi

http://andr-04.github.com/inputmask-multi/
253 stars 106 forks source link

problem with android (Including demo) - recognize country after backspace #44

Open vladjap opened 5 years ago

vladjap commented 5 years ago

Hello,

I have issue with this on android devices (only when using android keyboard). When typing on android keyboard (e.g. 38160) it should recognize Serbian number and mask should be adapted for Serbian region. But it doesn't. It look like this:

screen shot 2019-01-14 at 10 32 32 am

and if i delete last number using backspace it turns out to be right:

screen shot 2019-01-14 at 10 35 28 am

I am using Samsung Galaxy S9, but problem is present on other android devices I tried too.

Also, When I connect android device to my mac book with USB, and debug android chrome remotely, problem occurs only when using android keyboard, when typing on mac book, everything works fine.

Can you advice how to fix this?

Bpaxio commented 4 years ago

This problem is connected with events, generated by tapping keyboard. On the Android as I saw there is no event keypress, only keydown, but on others devices both of them keypress & keydown are present. \ See about it HERE->