public interface HasKeyPressHandlers extends HasHandlers
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addKeyPressHandler(KeyPressHandler handler)
Executed when a key is pressed and released on a focusable widget (
canFocus : true). |
fireEvent
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