Package com.google.gwt.user.client.ui
Interface HasKeyPreview
Deprecated.
A class that implements this interface receives a preview of keyboard events
before they are passed to the focused widget.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanonKeyDownPreview(char key, int modifiers) Deprecated.Called when a key-down event is received.booleanonKeyPressPreview(char key, int modifiers) Deprecated.Called when a key-press event is received.booleanonKeyUpPreview(char key, int modifiers) Deprecated.Called when a key-up event is received.
-
Method Details
-
onKeyDownPreview
boolean onKeyDownPreview(char key, int modifiers) Deprecated.Called when a key-down event is received.- Parameters:
key- the physical key that was depressed. Constants for this value are defined in this interface with the KEYCODE prefix.modifiers- the modifier keys pressed at when the event occurred. This value is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT.
-
onKeyPressPreview
boolean onKeyPressPreview(char key, int modifiers) Deprecated.Called when a key-press event is received.- Parameters:
key- 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 byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT.
-
onKeyUpPreview
boolean onKeyUpPreview(char key, int modifiers) Deprecated.Called when a key-up event is received.- Parameters:
key- the physical key that was released. Constants for this value are defined in this interface with the KEYCODE prefix.modifiers- the modifier keys pressed at when the event occurred. This value is a combination of the bits defined byKeyboardListener.MODIFIER_SHIFT,KeyboardListener.MODIFIER_CTRL, andKeyboardListener.MODIFIER_ALT.
-
Event.addNativePreviewHandler(com.google.gwt.user.client.Event.NativePreviewHandler)instead.