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
-
KEY_BACKSPACE
-
KEY_CTRL
-
KEY_DELETE
-
KEY_DOWN
-
KEY_END
-
KEY_ENTER
-
KEY_ESCAPE
-
KEY_HOME
-
KEY_LEFT
-
KEY_PAGEDOWN
-
KEY_PAGEUP
-
KEY_RIGHT
-
KEY_SHIFT
-
KEY_TAB
-
KEY_UP
-
MODIFIER_ALT
-
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