In GWT + UiBinder you can catch clicks like this:
@UiHandler("cancelButton")
void onCancelButtonClicked(ClickEvent e) {
// cancel code goes here;
}
Is there an equivalent for key pressed? For example if the user presses the ESC key then we cancel an action.
Thank you so much.
This should work:
The widget will have to implement
HasKeyDownHandlers.