Open Keyboard with code

Dataverde

Member
Licensed User
Longtime User
Hey,

a feature i really miss is the possibility to open the on screen keyboard with code.
It is vital to provide a good inputflow for the user.
I am using custom dialogs to get data and want the keyboard to come up when the dialog opens.

Have a good day,
Lennart
 

optimist

Member
Licensed User
Longtime User
i want to support this wish, additionally i would like to change the keyboard layout.

for example for input email adresses another keyboard layout ist reasonable as for input a bank account number.

iphone apps use this often.
 
Last edited:

JOTHA

Well-Known Member
Licensed User
Longtime User
... but it doesn't work all the time ...

You can already control the keyboard layout by setting the EditText InputType property.

My Problem is how to close the keyboard by Code.

I tried several times ...
B4X:
EditTextXDummy.RequestFocus
EditTextXDummy.InputType = EditTextXDummy.INPUT_TYPE_NONE
and made some experiments like ...
B4X:
Dim InputType As EditText
InputType.Initialize("Panel1")
InputType.InputType = InputType.INPUT_TYPE_NONE
... but nothing works.

I need the code because after putting some text into a "search-function" (as EditText) and pressing a Button the Keyboard should disappear automatically.

It would be great to have a solution for that (such like SIP (True|False) in B4P)
 

JOTHA

Well-Known Member
Licensed User
Longtime User
Next version adds Phone.HideKeyboard method.

GREAT !!! I've read that this verrsion 1.6 comes out in a few days ... ?

THANK YOU Erel :icon_clap:
 
Top