If you want to do it when a PasswordTextBox is on focus for example
(this is from my sign-in page):

passwordTextBox.addKeyPressHandler(new KeyPressHandler() {
         public void onKeyPress(KeyPressEvent event) {
            if (((int)event.getCharCode()) == 13) {  // User hit
"Enter" key
               submitForm();
            }
         }
});

On Feb 24, 4:55 pm, Néstor Boscán <[email protected]> wrote:
> Hi
>
> I need to simulate the "Enter Key" submit form in GWT where hay hit the
> enter key and the form is submitted. Any ideas on how to acomplish this?
>
> Regards,
>
> Néstor Boscán

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to