public interface HasKeyDownHandlers extends HasHandlers
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addKeyDownHandler(KeyDownHandler handler)
Executed when a key is pressed on a focusable widget (
canFocus :
true). |
fireEvent
HandlerRegistration addKeyDownHandler(KeyDownHandler 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 keyDown handlerHandlerRegistration
used to remove this handler