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
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.useKeyCodes.KEY_ALTinsteadstatic final intDeprecated.useKeyCodes.KEY_BACKSPACEinsteadstatic final intDeprecated.useKeyCodes.KEY_CTRLinsteadstatic final intDeprecated.useKeyCodes.KEY_DELETEinsteadstatic final intDeprecated.useKeyCodes.KEY_DOWNinsteadstatic final intDeprecated.useKeyCodes.KEY_ENDinsteadstatic final intDeprecated.useKeyCodes.KEY_ENTERinsteadstatic final intDeprecated.useKeyCodes.KEY_ESCAPEinsteadstatic final intDeprecated.useKeyCodes.KEY_HOMEinsteadstatic final intDeprecated.useKeyCodes.KEY_LEFTinsteadstatic final intDeprecated.useKeyCodes.KEY_PAGEDOWNinsteadstatic final intDeprecated.useKeyCodes.KEY_PAGEUPinsteadstatic final intDeprecated.useKeyCodes.KEY_RIGHTinsteadstatic final intDeprecated.useKeyCodes.KEY_SHIFTinsteadstatic final intDeprecated.useKeyCodes.KEY_TABinsteadstatic final intDeprecated.useKeyCodes.KEY_UPinsteadstatic final intDeprecated.useKeyEvent.isAltKeyDown()insteadstatic final intDeprecated.useKeyEvent.isControlKeyDown()insteadstatic final intDeprecated.useKeyEvent.isMetaKeyDown()insteadstatic final intDeprecated.useKeyEvent.isShiftKeyDown()instead -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidonKeyPress(Widget sender, char keyCode, int modifiers) Deprecated.voidDeprecated.
-
Field Details
-
KEY_ALT
Deprecated.useKeyCodes.KEY_ALTinstead- See Also:
-
KEY_BACKSPACE
Deprecated.useKeyCodes.KEY_BACKSPACEinstead- See Also:
-
KEY_CTRL
Deprecated.useKeyCodes.KEY_CTRLinstead- See Also:
-
KEY_DELETE
Deprecated.useKeyCodes.KEY_DELETEinstead- See Also:
-
KEY_DOWN
Deprecated.useKeyCodes.KEY_DOWNinstead- See Also:
-
KEY_END
Deprecated.useKeyCodes.KEY_ENDinstead- See Also:
-
KEY_ENTER
Deprecated.useKeyCodes.KEY_ENTERinstead- See Also:
-
KEY_ESCAPE
Deprecated.useKeyCodes.KEY_ESCAPEinstead- See Also:
-
KEY_HOME
Deprecated.useKeyCodes.KEY_HOMEinstead- See Also:
-
KEY_LEFT
Deprecated.useKeyCodes.KEY_LEFTinstead- See Also:
-
KEY_PAGEDOWN
Deprecated.useKeyCodes.KEY_PAGEDOWNinstead- See Also:
-
KEY_PAGEUP
Deprecated.useKeyCodes.KEY_PAGEUPinstead- See Also:
-
KEY_RIGHT
Deprecated.useKeyCodes.KEY_RIGHTinstead- See Also:
-
KEY_SHIFT
Deprecated.useKeyCodes.KEY_SHIFTinstead- See Also:
-
KEY_TAB
Deprecated.useKeyCodes.KEY_TABinstead- See Also:
-
KEY_UP
Deprecated.useKeyCodes.KEY_UPinstead- 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_ENTERor 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,KeyUpHandlerand/orKeyPressHandlerinstead