I have a problem with hiding keyboard in the iPhone simulator. My HTML code:
Try adding another focusable element (ex: a ) to your page (set its height to 0 so that its not visible yet focusable), and shift focus to that element before returning false.