com.google.gwt.user.client.ui.KeyboardListener |
Known Indirect Subclasses |
This interface is deprecated.
use KeyDownHandler
,
KeyUpHandler
and/or
KeyPressHandler
instead
Event listener interface for keyboard events.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | KEY_ALT |
This constant is deprecated.
use KEY_ALT
instead
|
|||||||||
int | KEY_BACKSPACE |
This constant is deprecated.
use
KEY_BACKSPACE
instead
|
|||||||||
int | KEY_CTRL |
This constant is deprecated.
use KEY_CTRL
instead
|
|||||||||
int | KEY_DELETE |
This constant is deprecated.
use KEY_DELETE
instead
|
|||||||||
int | KEY_DOWN |
This constant is deprecated.
use KEY_DOWN
instead
|
|||||||||
int | KEY_END |
This constant is deprecated.
use KEY_END
instead
|
|||||||||
int | KEY_ENTER |
This constant is deprecated.
use KEY_ENTER
instead
|
|||||||||
int | KEY_ESCAPE |
This constant is deprecated.
use KEY_ESCAPE
instead
|
|||||||||
int | KEY_HOME |
This constant is deprecated.
use KEY_HOME
instead
|
|||||||||
int | KEY_LEFT |
This constant is deprecated.
use KEY_LEFT
instead
|
|||||||||
int | KEY_PAGEDOWN |
This constant is deprecated.
use
KEY_PAGEDOWN
instead
|
|||||||||
int | KEY_PAGEUP |
This constant is deprecated.
use KEY_PAGEUP
instead
|
|||||||||
int | KEY_RIGHT |
This constant is deprecated.
use KEY_RIGHT
instead
|
|||||||||
int | KEY_SHIFT |
This constant is deprecated.
use KEY_SHIFT
instead
|
|||||||||
int | KEY_TAB |
This constant is deprecated.
use KEY_TAB
instead
|
|||||||||
int | KEY_UP |
This constant is deprecated.
use KEY_UP
instead
|
|||||||||
int | MODIFIER_ALT |
This constant is deprecated.
use
isAltKeyDown()
instead
|
|||||||||
int | MODIFIER_CTRL |
This constant is deprecated.
use
isControlKeyDown()
instead
|
|||||||||
int | MODIFIER_META |
This constant is deprecated.
use
isMetaKeyDown()
instead
|
|||||||||
int | MODIFIER_SHIFT |
This constant is deprecated.
use
isShiftKeyDown()
instead
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
use
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent)
instead
| |||||||||||
This method is deprecated.
use
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
instead
| |||||||||||
This method is deprecated.
use
onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent)
instead
|
This method is deprecated.
use
onKeyDown(com.google.gwt.event.dom.client.KeyDownEvent)
instead
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 |
This method is deprecated.
use
onKeyPress(com.google.gwt.event.dom.client.KeyPressEvent)
instead
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 |
This method is deprecated.
use
onKeyUp(com.google.gwt.event.dom.client.KeyUpEvent)
instead
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 |