### Handle Enter Key

To handle the enter key in a text field, use the Action Event.
Example
In a form a textfield and button is defined. when pressing the enter key in the textfield, the
button action will be executed.
`Sub Class_Globals
Private fx As JFX
Private frm As Form
Private buttonOK As Button
Public textfieldInput As TextField
Public Result As Boolean
End Sub#LINERB#`
' Close
`Sub buttonOK_Action
Result = True
frm.Close
End Sub`
' Handle return key as Button OK
`Sub textfieldInput_Action
' Handle enter key = means this action is executed if enter key is pressed
buttonOK_Action
End Sub`

Changed: 2018-05-14 19:50, Category: TextField, File: T6C262M1938.htm, ID: 1938