In my app I have a View which implements the KeyUpHandler. Within the view
I have a TextBox for which I have added the key up event handler. My view
summarized looks something like this:
public class View extends Composite implements KeyUpHandler
{
public View()
{
textbox.addKeyUpHandler(this);
}
@Override
public void onKeyUp(KeyUpEvent event) {
if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) {
Window.alert("Enter was pressed");
keyPressButton.click();
}
}
}
My problem is that when I click the ENTER key while focus is on the textbox,
the onmodule method is called reinitializing everything....How do I avoid
this?
--
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.