So, I just discovered the .ForceDoneButton and have a use for it.
How can we detect this?
I have a edittext for user to enter search criteria and a 'Search' button but can we detect the user pressing the 'Done' on the onscreen keyboard and from that fire the btnSearch_Click.
And when 'Done' is pressed I try to handle with this. I didn't have the btn_Click in case I got that wrong too
B4X:
Sub txtActionSearch_EnterPressed
If txtActionSearch.Text <> "" Then
CommandMenu.strSearchCommand = txtActionSearch.Text
StartActivity(CommandMenu)
End If
End Sub
I know it's something that you like to do but would it be possible to send it to you private as it has some copyright material that I am in the contact with the manufacturer with for release permission.
Or, if you prefer I could write a sample with the same setup?
just nipping out for a couple of hours so will read you reply and act on it when I get back. Thanks
Using the IME library to handle the Done was actually the better option. Enter being pressed is not always the same thing. There is a switch for multiline textboxes that actually splits them so you can create newlines. Some vendors also customize their keyboards to behave differently too.