Any way to hide the keyboard programmatically?
I have a search field for my iPad app, and when the user begins typing in it, a list of suggestions pops up in a popover (similar to the Google search box in the Safari app). I want to blur the search field and hide the keyboard once the user taps on a suggestion, however, I can't figure out how to do it. Does anyone know?
4 Answers
-
Accepted Answer
textField.blur()
-
I know that is a 2 years ago thread, but maybe anyone still looking for a solution for Android (like me!).
In iPhone I do textfield.blur(); and it works fine, but not in Android.Anyone knows how to hide the keyboard in Android?, if I open a window that has a textfield and a tableview. When I open the window I don't want to see the keyboad until the user clicks the textfield.
Thanks!
-
You can try with Ti.UI.Android.hideSoftKeyboard()
-
While this works for Android, the initial question was for iOS.