I tested this one on an iPhone (ios5) and and HTC - Android.
I'm trying to build a mobile application like the iPhone contacts app. I managed to get it working like it should. You can see a video here.
If you click the searchTextBox the click eventhandler fires this hides the top panel, show the cancel button and shows an opacity panel to mask the rest of the page.
If you execute this on a mobile browser the behaviour is not as it should be, see video here.
When the click eventhandler is executed the keyboard pops-up, then the rest of the code is executed, the keuboard disapears again. So you have to click again on the textbox to put the focus there and to make the keyboard visible.
You can easily reproduce this by putting a field on a form, add a click eventhandler where you do something else that refreshes the screen.
Tom