public interface HasKeyPressHandlers
extends com.google.gwt.event.shared.HasHandlers
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addKeyPressHandler(KeyPressHandler handler)
Executed when a key is pressed and released on a focusable widget (
canFocus: true). |
com.google.gwt.event.shared.HandlerRegistration addKeyPressHandler(KeyPressHandler handler)
canFocus: true). Use EventHandler.getKey() to find out the
String of the key that was pressed, and use EventHandler.shiftKeyDown() and related functions to determine whether modifier keys were down.
handler - the keyPress handlerHandlerRegistration used to remove this handler