Actually, that isn't true - see 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5067

The only way that works is to add a KeyDownHandler to each TextBox in
the form, that checks the native key code and calls
event.preventDefault if it is the Enter key

On Sep 13, 8:55 pm, lineman78 <[email protected]> wrote:
> add a submit handler and you can call cancel on the event.
>
> On Sep 13, 9:58 am, nirav patani <[email protected]> wrote:
>
> > Is there any way to cancel a GWT submit event on press of enter key.
>
> > I want to perform som validations on the gwt page and then only invoke
> > form.submit() method. but form gets submitted by pressing of enter
> > key. Any suggestions to do the same ??

-- 
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