Android Question Using the "Enter" key

Sergey_New

Well-Known Member
Licensed User
Longtime User
I made an example in which when moving through View EditText using the "Enter" key, the cursor moves to the next EditText and the keyboard is displayed. Maybe it can be made simpler?
 

Attachments

  • test.zip
    3.9 KB · Views: 173

Lucas Siqueira

Active Member
Licensed User
Longtime User
you can replace the code

B4X:
Private Sub EditText1_EnterPressed
    IME.HideKeyboard
    Sleep(10)
    IME.ShowKeyboard(EditText2)
End Sub

by code
B4X:
Private Sub EditText1_EnterPressed
    EditText2.RequestFocus
End Sub
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
If anyone is interested, I changed the code so that the keyboard does not hide when moving to the next entry.
 

Attachments

  • test.zip
    4.8 KB · Views: 206
Upvote 0
Solution
Top