JohnC Expert Licensed User Longtime User Aug 30, 2019 #1 I am displaying a dialog that asks for text input, when the dialog closes, I have the below line to hide the keyboard: B4X: IME.HideKeyboard It does not hide the keyboard. Another thread suggested disabling the edittext view, but since it was in the dialog, it no longer exists. Another thread suggested adding: B4X: Sleep(100) That did not work - I even tried "Sleep(1000)" still no good. What worked was: B4X: IME.HideKeyboard DoEvents Why does it only work with a deprecated function?
I am displaying a dialog that asks for text input, when the dialog closes, I have the below line to hide the keyboard: B4X: IME.HideKeyboard It does not hide the keyboard. Another thread suggested disabling the edittext view, but since it was in the dialog, it no longer exists. Another thread suggested adding: B4X: Sleep(100) That did not work - I even tried "Sleep(1000)" still no good. What worked was: B4X: IME.HideKeyboard DoEvents Why does it only work with a deprecated function?
Erel B4X founder Staff member Licensed User Longtime User Aug 30, 2019 #2 Which dialog? You should use B4XDialog with the input template. Upvote 0
JohnC Expert Licensed User Longtime User Aug 30, 2019 #3 I'm using the "Dialogs" library v2.92 But if the Dialog was dismissed BEFORE the IME.HideKeyboard, how can it still effect/hold the keyboard on the screen? Upvote 0
I'm using the "Dialogs" library v2.92 But if the Dialog was dismissed BEFORE the IME.HideKeyboard, how can it still effect/hold the keyboard on the screen?
N noeleon Active Member Licensed User Longtime User Aug 30, 2019 #4 i even put 2 doevents after ime.hidekeyboard because sometimes virtual keyboard does not hide with only 1 doevents Upvote 0
i even put 2 doevents after ime.hidekeyboard because sometimes virtual keyboard does not hide with only 1 doevents
Erel B4X founder Staff member Licensed User Longtime User Sep 1, 2019 #5 If you are showing a modal dialog then you are doing a mistake. You should use B4XDialog with the input template. Upvote 0
If you are showing a modal dialog then you are doing a mistake. You should use B4XDialog with the input template.