Example:
On a simple login screen I want to allow the user to type 'Enter' after entering the username and password to fire the login button's click event. But what code goes in the onKeyPress method of the username and password fields' KeyPressHandler to click the button? I'm sure I am overlooking something simple, but I just can't figure out how to do it.
On regular GWT buttons, there is a click() method so the call would just be loginButton.click().
On a simple login screen I want to allow the user to type 'Enter' after entering the username and password to fire the login button's click event. But what code goes in the onKeyPress method of the username and password fields' KeyPressHandler to click the button? I'm sure I am overlooking something simple, but I just can't figure out how to do it.
On regular GWT buttons, there is a click() method so the call would just be loginButton.click().
Comment