In a small application with a number of TextBoxes and a single Button
I use a KeyboardListener to handle form submission when the user
presses the enter key.
In certain situations the form submission results in a message to the
user which is displayed using a Window.alert(). Now the alert box has
focus, but when the user press ENTER in order to get rid of the alert
box (ENTER is normally equivalent to pressing the OK button in the
alert box), the KeyboardListener submits the form again because it
also catches the ENTER press.
The expected behavior would IMHO be that the KeyboardListener did not
catch the keyboard events when a Window.alert() box was shown and had
focus. How can I obtain this expected behavior?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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