I've been working for days to work around the limitation of iOS that doesn't allow auto focus on text field on Ipad. The issue is well explained here Mobile Safari Autofocus text field.
My goal is to be able to scan a bar code via a Bluetooth Scanner directly on screen without the user interaction.
I managed to set the AutoFocus by simply doing, I've tested it on iOS v6
$('#MyTextField').trigger('focus');
document.activeElement is returning my text field by there is no CURSOR on the text field. Is is normal?
I think because the the cursor is not displayed on the text box, the keyboard is not displayed, and because the keyboard is not displayed, the keypress event is not firing when I use the scanner!