Android Question Disable special character

badal405

Member
Licensed User
Longtime User
Dear Erel,
To desable the special character I have used the following code
B4X:
    Dim kb As IME
    kb.Initialize("")
    kb.SetCustomFilter(EditText10, EditText10.INPUT_TYPE_TEXT, "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890")
It is working fine but I discover that the spacebar from the soft keyboard is not working.
How could I add spacebar into SetCustomFilter?
Thanks and regards.
 

badal405

Member
Licensed User
Longtime User
Have you tried to add a space this this string?
Yes I did but not work. Here below I have posted the code. [After zero I put space.]
B4X:
kb.SetCustomFilter(EditText1, EditText1.INPUT_TYPE_TEXT, "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890 ")
 
Upvote 0

badal405

Member
Licensed User
Longtime User
I tried it here with the default keyboard and it works. Eventually it is the installed keyboard responsibility to correctly handle this filter.

Try it with a different keyboard.
Yes you are right. I tried with another tab it is working fine.
Thank you very much.
 
Upvote 0
Top