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
The problem is that, if the active element is focused, you can trigger the resize event just by closing the keyboard without altering the focus.. so, the keyboard will hidden but the code will enter into the condition of focus.