Hide Device Keyboard - question

NJDude

Expert
Licensed User
Longtime User
I've noticed that if you use the new 'HideKeyboard' on a TEXT box you have to press entrer twice to hide it, but, if the edit box is DECIMAL_NUMBERS 1 enter will hide the keyboard, I have the Force done (on the designer) set to true.

Is that a normal behavior or is an Android bug <?> or B4A?
 

Smee

Well-Known Member
Licensed User
Longtime User
If you set ForceDone to true then the keyboard should hide automatically. You do not need to call HideKeyboard.

How is this accomplished on an inputdialog where the input is INPUT_TYPE_TEXT?
 
Upvote 0

Smee

Well-Known Member
Licensed User
Longtime User
sorry i did not explain properly I am using the following code

B4X:
Dim dlgPassword As InputDialog

dlgPassword.Input = dlgPassword.INPUT_TYPE_TEXT    
dlgPassword.PasswordMode = True
ans = dlgPassword.Show("Enter your password below.", "Password", "Ok", "","",Null)
Passwordinput = dlgPassword.Input

when the password has been entered the keyboard stays on screen. How do i hide it without using "ph.HideKeyboard(Activity)"
 
Last edited:
Upvote 0
Top