Thank you for your answer, but maybe I asked the wrong ... I want when I'm in the combo box and press the enter key to go to the next control - something like that
B4X:
Sub txtUser_Action
txtIme.RequestFocus
txtIme.SelectAll
End Sub
thanks for the reply - I understood that there is not Action Event for combobox ... that's why I'm looking for help on how to handle " press the enter key event" to hand over control to the next object
Sub RootPaneKeyEvent_Event(e As Event)
Dim KE As Reflector
KE.Target = e ' e is a KeyEvent instance
Dim KeyCode As String
KeyCode = KE.RunMethod("getCode")
If KeyCode = "ENTER" And mComboBox1=True Then
Log("Pressed ENTER in ComboBox1")
TextField2.RequestFocus
End If
If KeyCode = "ENTER" And mComboBox2=True Then
Log("Pressed ENTER in ComboBox2")
TextField1.RequestFocus
End If
End Sub