I have a webview that a web chat client downloads.
Like every chat, the page has a text box for entering text.
The problem is that when the user opens the keyboard, it automatically hides after a short time due to several ajax requests that reload the page. This becomes very annoying for the user, since he or she cannot enter the full sentence before the keyboard is hidden.
I don’t know why this only happens in iPhone 4S and iPhone 5. In iPhone 4, 3GS and Simulator everything works fine.
I tried to use shouldStartLoadWithRequest to catch the request and load it after the user hides the keyboard, but this disrupts the chat session.
I tried to “hang” the request with the Thread thread in the same method, but this happens in the main thread so that it hangs on the entire application.
Is there a way that I can simply avoid hiding the keyboard?
htafoya
source share