I've a SuggestBox and have added a KeyDownHandler to it like this:
suggestBox.addKeyDownHandler(new KeyDownHandler() {
public void onKeyDown(KeyDownEvent event) {
switch (event.getNativeKeyCode()) {
case KeyCodes.KEY_ENTER:
System.out.println("KEY ENTER");
break;
case KeyCodes.KEY_LEFT:
moveSuggestBoxLeft();
break;
case KeyCodes.KEY_RIGHT:
moveSuggestBoxRight();
break;
default:
break;
}
}
});
When I for example press the ENTER key I receive the onKeyDown event
two times. Is this a bug or a feature?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---