Developing iOS application with GWT 2.5.1 and Cordova 2.9.0.0.
Met quite a big issue: upon tapping any text box virtual keyboard appears but no javascript focus event is fired (or any other events except window resize).
So i cannot determine which text box was tapped. Moreover i cannot even tell why window size has changed - because of screen orientation change or keyboard appearance.
document.activeElement points to BODY element.
The second tap (when the keyboard is visible) does fire onFocus event.
Tried on iphone simulators 5.0 and 6.0
The issue happens only when config.xml has KeyboardShrinksView=true. If i set to to false all works fine but whole screen slides up including the title bar which is not acceptable.So the question is how can i get active text box on the first tap or check if virtual keyboard is visible (without writing phonegap plugin)?
Thanx in advance
$('body').on('touchstart', '#your-form input[name="inputname"]', function(event) {
$(this).focus();
});