There\'s a lot of discussion about the soft keyboard but I haven\'t found a good solution for my problem yet.
I have a resize function like:
$(window
Similar to previous answer, but targets all kids of form with focus (obviously, would fail on inputs without a form parent)
$(window).resize(function() {
if($('form *').focus()) {
alert('ignore this');
} else {
// do the thing
}
});
So maybe this one...
$(window).resize(function() {
if($('input, select, etc').focus()) {
alert('ignore this');
} else {
// do the thing
}
});