dickhardt / A2P3_HTML

HTML / CSS / JS issues for A2P3 -- created to track issues
0 stars 0 forks source link

keypad goes away between entering passcodes #24

Open dickhardt opened 11 years ago

dickhardt commented 11 years ago

moved from https://github.com/dickhardt/A2P3/issues/36

GregTurner commented 11 years ago

According to this thread, this is by design of Apple. I tried numerous workaround suggested, but nothing seems to work properly.

http://stackoverflow.com/questions/6287478/mobile-safari-autofocus-text-field

GregTurner commented 11 years ago

Not possible

watkinspd commented 11 years ago

Does this relate to this issue?

https://discussions.apple.com/thread/4398117?start=30&tstart=0

Screen Shot 2013-04-04 at 4 17 36 PM

GregTurner commented 11 years ago

I think the focus was in the document.loaded event... I'll take another look.

GregTurner commented 11 years ago

The above thread on Apple talks about losing focus after keyboard is up. That's not the problem in our situation. I can programatically focus but it seems Mobile Safari will only allow this if the first event on the JS stack is a user driven event. I'll leave issue here for future devs to find a workaround or if Mobile Safari allows some sort of directive to override this default behaviour.