Hi All,
I have found a problem with SetCustomFilter when used with Gboard keyboard [ and probably others]. When I attempt to use the following with the soft keyboard Gboard hitting the return key does not take me to the Sub DispInput_EnterPressed. With the Samsung keyboard and Swiftkey all works.
The Single Line function is unchecked in the designer.
If I remove the filter, all works correctly.
If I add CRLF to the filter it does a CRLF.
Any Ideas?
Regards Roger
I have found a problem with SetCustomFilter when used with Gboard keyboard [ and probably others]. When I attempt to use the following with the soft keyboard Gboard hitting the return key does not take me to the Sub DispInput_EnterPressed. With the Samsung keyboard and Swiftkey all works.
B4X:
Private DispInput As EditText
Private kb As IME
DispInput.BringToFront
DispInput.RequestFocus
DispInput.SelectionStart = 0
DispInput.ForceDoneButton = True
Sleep(10)
kb.ShowKeyboard(DispInput)
kb.SetCustomFilter(DispInput, DispInput.INPUT_TYPE_TEXT, "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz _-")
The Single Line function is unchecked in the designer.
If I remove the filter, all works correctly.
If I add CRLF to the filter it does a CRLF.
Any Ideas?
Regards Roger
Last edited: