public void onKeyPress(KeyPressEvent event) { for (KeyPressPreviewHandler handler : keyPressPreviewHandlers_) { if (handler.previewKeyPress(event.getCharCode())) { event.preventDefault(); event.stopPropagation(); return; } } }
@Override public HandlerRegistration addKeyPressHandler(final KeyPressHandler handler) { return handlers.addHandler(KeyPressEvent.getType(), handler); }
public HandlerRegistration addKeyPressHandler(KeyPressHandler handler) { return addDomHandler(handler, KeyPressEvent.getType()); }