/** * Add a keyPress handler. * <p> * StringMethod fired when the user presses a key while focused in this form item. * * @param handler the keyPress handler * @return {@link HandlerRegistration} used to remove this handler */ public HandlerRegistration addKeyPressHandler(com.smartgwt.client.widgets.form.fields.events.KeyPressHandler handler) { if(getHandlerCount(com.smartgwt.client.widgets.form.fields.events.KeyPressEvent.getType()) == 0) setupKeyPressEvent(); return doAddHandler(handler, com.smartgwt.client.widgets.form.fields.events.KeyPressEvent.getType()); }