Event.addNativePreviewHandler(com.google.gwt.user.client.Event.NativePreviewHandler)
instead.@Deprecated
public interface HasKeyPreview
KeyCodeEvent| Modifier and Type | Method and Description |
|---|---|
boolean |
onKeyDownPreview(char key,
int modifiers)
Deprecated.
Called when a key-down event is received.
|
boolean |
onKeyPressPreview(char key,
int modifiers)
Deprecated.
Called when a key-press event is received.
|
boolean |
onKeyUpPreview(char key,
int modifiers)
Deprecated.
Called when a key-up event is received.
|
boolean onKeyDownPreview(char key,
int modifiers)
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 by
KeyboardListener.MODIFIER_SHIFT,
KeyboardListener.MODIFIER_CTRL,
and
KeyboardListener.MODIFIER_ALT.boolean onKeyPressPreview(char key,
int modifiers)
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 by
KeyboardListener.MODIFIER_SHIFT,
KeyboardListener.MODIFIER_CTRL,
and
KeyboardListener.MODIFIER_ALT.boolean onKeyUpPreview(char key,
int modifiers)
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 by
KeyboardListener.MODIFIER_SHIFT,
KeyboardListener.MODIFIER_CTRL,
and
KeyboardListener.MODIFIER_ALT.