Package com.google.gwt.user.client.ui
Interface KeyboardListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
DecoratedTabBar
,DelegatingKeyboardListenerCollection
,KeyboardListenerAdapter
,TabBar
Deprecated.
Event listener interface for keyboard events.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.useKeyCodes.KEY_ALT
insteadstatic final int
Deprecated.useKeyCodes.KEY_BACKSPACE
insteadstatic final int
Deprecated.useKeyCodes.KEY_CTRL
insteadstatic final int
Deprecated.useKeyCodes.KEY_DELETE
insteadstatic final int
Deprecated.useKeyCodes.KEY_DOWN
insteadstatic final int
Deprecated.useKeyCodes.KEY_END
insteadstatic final int
Deprecated.useKeyCodes.KEY_ENTER
insteadstatic final int
Deprecated.useKeyCodes.KEY_ESCAPE
insteadstatic final int
Deprecated.useKeyCodes.KEY_HOME
insteadstatic final int
Deprecated.useKeyCodes.KEY_LEFT
insteadstatic final int
Deprecated.useKeyCodes.KEY_PAGEDOWN
insteadstatic final int
Deprecated.useKeyCodes.KEY_PAGEUP
insteadstatic final int
Deprecated.useKeyCodes.KEY_RIGHT
insteadstatic final int
Deprecated.useKeyCodes.KEY_SHIFT
insteadstatic final int
Deprecated.useKeyCodes.KEY_TAB
insteadstatic final int
Deprecated.useKeyCodes.KEY_UP
insteadstatic final int
Deprecated.useKeyEvent.isAltKeyDown()
insteadstatic final int
Deprecated.useKeyEvent.isControlKeyDown()
insteadstatic final int
Deprecated.useKeyEvent.isMetaKeyDown()
insteadstatic final int
Deprecated.useKeyEvent.isShiftKeyDown()
instead -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
onKeyPress
(Widget sender, char keyCode, int modifiers) Deprecated.void
Deprecated.
-
Field Details
-
KEY_ALT
Deprecated.useKeyCodes.KEY_ALT
instead- See Also:
-
KEY_BACKSPACE
Deprecated.useKeyCodes.KEY_BACKSPACE
instead- See Also:
-
KEY_CTRL
Deprecated.useKeyCodes.KEY_CTRL
instead- See Also:
-
KEY_DELETE
Deprecated.useKeyCodes.KEY_DELETE
instead- See Also:
-
KEY_DOWN
Deprecated.useKeyCodes.KEY_DOWN
instead- See Also:
-
KEY_END
Deprecated.useKeyCodes.KEY_END
instead- See Also:
-
KEY_ENTER
Deprecated.useKeyCodes.KEY_ENTER
instead- See Also:
-
KEY_ESCAPE
Deprecated.useKeyCodes.KEY_ESCAPE
instead- See Also:
-
KEY_HOME
Deprecated.useKeyCodes.KEY_HOME
instead- See Also:
-
KEY_LEFT
Deprecated.useKeyCodes.KEY_LEFT
instead- See Also:
-
KEY_PAGEDOWN
Deprecated.useKeyCodes.KEY_PAGEDOWN
instead- See Also:
-
KEY_PAGEUP
Deprecated.useKeyCodes.KEY_PAGEUP
instead- See Also:
-
KEY_RIGHT
Deprecated.useKeyCodes.KEY_RIGHT
instead- See Also:
-
KEY_SHIFT
Deprecated.useKeyCodes.KEY_SHIFT
instead- See Also:
-
KEY_TAB
Deprecated.useKeyCodes.KEY_TAB
instead- See Also:
-
KEY_UP
Deprecated.useKeyCodes.KEY_UP
instead- See Also:
-
MODIFIER_ALT
Deprecated.useKeyEvent.isAltKeyDown()
instead- See Also:
-
MODIFIER_CTRL
Deprecated.useKeyEvent.isControlKeyDown()
instead- See Also:
-
MODIFIER_META
Deprecated.useKeyEvent.isMetaKeyDown()
instead- See Also:
-
MODIFIER_SHIFT
Deprecated.useKeyEvent.isShiftKeyDown()
instead- See Also:
-
-
Method Details
-
onKeyDown
Deprecated.Fired when the user depresses a physical key.- Parameters:
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 byMODIFIER_SHIFT
,MODIFIER_CTRL
, andMODIFIER_ALT
-
onKeyPress
Deprecated.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 withonKeyDown(Widget, char, int)
oronKeyUp(Widget, char, int)
.- Parameters:
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 byMODIFIER_SHIFT
,MODIFIER_CTRL
, andMODIFIER_ALT
-
onKeyUp
Deprecated.Fired when the user releases a physical key.- Parameters:
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 byMODIFIER_SHIFT
,MODIFIER_CTRL
, andMODIFIER_ALT
-
KeyDownHandler
,KeyUpHandler
and/orKeyPressHandler
instead