Firing Method with key press

I have searched and found some old posts regarding this issue; however, they didn’t help.

I have a Username/Password login control with a UI button that is used to call a method that will perform validation.

How do I code such that when I press the “Enter” key that the validation method fires?

Thank you all ahead of tme.

The onAction-method of a text box element is triggered by entering the Enter button.

Regards,

craigcornish,

A OnAction handler on textfields is fired when the user presses Enter.

Rob