detect 'DONE' KEY from SCREEN KEYBOARD

Cor

Active Member
Licensed User
Longtime User
I want to detect the 'DONE' key from the onscreen keyboard

want to execute a sub when done

I cannot find the keycode for it, or isn't this possible?

grCor
 

diego

Member
Licensed User
Longtime User
is it possible to force numeric 'phone' keyboard?

now when entering editText it shows the keyboard

1 2 3 4 5 6 7 8 9 0
@ # $ %....

I'd like to set the keyboard
1 2 3
4 5 6
7 8 9
* 0 _
 
Upvote 0

diego

Member
Licensed User
Longtime User
Input Type is already set to Numbers, but I need to show the numeric keyboard with the phone appearence (or any numeric keyboard), not the numbers one after each other.
 
Upvote 0

diego

Member
Licensed User
Longtime User
thank you Erel.

In the meanwhile, I'm trying to set this value to every EditText view in my 'testapp', but I'm doing something wrong, it doesn't change with this code:

B4X:
   For i = 0 To Activity.NumberOfViews - 1
         If activity.GetView(i) Is EditText Then
      Dim myfield  As EditText
      myfield=activity.GetView(i)
      myfield.InputType = 3
         End If
   Next
               ToastMessageShow(i, False)

all views are in a layout loaded to a tabHost, could it be the problem?
ToastMessageShow line returns '1' when there are about 20 edittexts...
 
Upvote 0

Rusty

Well-Known Member
Licensed User
Longtime User
Did you ever resolve this question? If so, can you tell me how this is done? Also, I would like to know how to detect the NEXT key, if possible.
 
Upvote 0
Top