The following code generates keydown, keypress, keyup events in the
CASE statement. How to get the press event only?
popup = new DecoratedPopupPanel(true) {
@Override
protected void onPreviewNativeEvent(NativePreviewEvent event) {
switch (event.getNativeEvent().getKeyCode()) {
case KeyCodes.KEY_ENTER:
GWT.log(event.getNativeEvent().getType(), null);
processFilterApply();
break;
}
super.onPreviewNativeEvent(event);
}
};
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---