Mathachew / jquery-autotab

A jQuery plugin that provides auto tabbing and filtering on text fields in a form
http://autotab.mathachew.com/
366 stars 98 forks source link

Jquery autotab functionality problem in Android +Firefox #96

Open soumyasss opened 8 years ago

soumyasss commented 8 years ago

I have started development in Jquery and i have encountered an scenario .

  1. I have a HTML form with 10 input fields each of maximum width 1 and type ="tel". 2 . Here i am using autotab plug-in of jquery ( https://github.com/Mathachew/jquery-autotab)
  2. So when we enter one number in input fields the focus will go to next input field.
  3. And when the input element has no value and we put cursor there and press "backspace" then focus will go to the previous element and delete the previous element's value .(Please find demo in the above link )
  4. Point 3 , 4 are the expected behaviour.

BUT in Android + Firefox browser only
1 . Point 4 is not working .

I have searched for this problem in Android + Firefox and i have some observation as below -

1 . keypress and keydown event are not recognized by Android + Firefox . 2 . These event i need to use and in that event i will use .which .keyCode .charCode to detect the "backspace" 3 . Hence i am Using keyup event and it worked .

  1. But for "backspace" code is returned as "undefined"

_NOTE _: these behavior is only in Android +Firefox ( Is it an limitation of Firefox+Android , as i can see the autotab plug-in demo also behaving in the same way )

Please provide your suggestion .

roshan-ship-it commented 7 years ago

Same issue i am facing for Autotab v 1.9.2..so what i did as work around used autotab v1.2.0 for android device..