B4J Question How to check a user's press is the Enter Key?

Theera

Well-Known Member
Licensed User
Hi all,
In method of TextField is Sub txtField_TextChanged (Old As String, New As String), I need to check a user's press is the Enter Key,it will change focus to other.
 

rwblinn

Well-Known Member
Licensed User
Hi Theera,

think this is being handled by the TextField Action Event, like:

B4X:
Sub textfield1_Action
   Log("User has pressed Enter...")
End Sub
 

Theera

Well-Known Member
Licensed User
Thank you for your replied,Rob. I think it's alike this,but I don't know to manage.
In VB6.0 using belows:
B4X:
If KeyAscii=13 then
  SendKeys "{TAB}",True
  KeyAscii=0
End If

In B4J How to coding?
 
Last edited:

Theera

Well-Known Member
Licensed User
Thank you,Erel from this.
 
Top