java.lang.Object | |
↳ | com.google.gwt.user.client.ui.KeyboardListenerAdapter |
This class is deprecated.
use KeyDownHandler
,
KeyUpHandler
and/or
KeyPressHandler
instead
An adapter to simplify keyboard event listeners that do not need all events defined on the KeyboardListener interface.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.google.gwt.user.client.ui.KeyboardListener
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fired when the user depresses a physical key.
| |||||||||||
Fired when a keyboard action generates a character.
| |||||||||||
Fired when the user releases a physical key.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.google.gwt.user.client.ui.KeyboardListener
|
Fired when the user depresses a physical key.
sender | the widget that was focused when the event occurred. |
---|---|
keyCode | the physical key that was depressed. Constants for this value are defined in this interface with the KEY prefix. |
modifiers | the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
MODIFIER_SHIFT ,
MODIFIER_CTRL , and
MODIFIER_ALT |
Fired when a keyboard action generates a character. This occurs after onKeyDown and onKeyUp are fired for the physical key that was pressed.
It should be noted that many browsers do not generate keypress events for
non-printing keyCode values, such as KEY_ENTER
or
arrow keys. These keyCodes can be reliably captured either with
onKeyDown(Widget, char, int)
or
onKeyUp(Widget, char, int)
.
sender | the widget that was focused when the event occurred. |
---|---|
keyCode | the Unicode character that was generated by the keyboard action. |
modifiers | the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
MODIFIER_SHIFT ,
MODIFIER_CTRL , and
MODIFIER_ALT |
Fired when the user releases a physical key.
sender | the widget that was focused when the event occurred. |
---|---|
keyCode | the physical key that was released. Constants for this value are defined in this interface with the KEY prefix. |
modifiers | the modifier keys pressed at when the event occurred. This
value is a combination of the bits defined by
MODIFIER_SHIFT ,
MODIFIER_CTRL , and
MODIFIER_ALT |