com.google.gwt.user.client.ui.HasKeyPreview |
This interface is deprecated.
This interface is no longer implemented by any GWT library. Use
addNativePreviewHandler(Event.NativePreviewHandler)
instead.
A class that implements this interface receives a preview of keyboard events before they are passed to the focused widget.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called when a key-down event is received.
| |||||||||||
Called when a key-press event is received.
| |||||||||||
Called when a key-up event is received.
|
Called when a key-down event is received.
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
MODIFIER_SHIFT ,
MODIFIER_CTRL ,
and
MODIFIER_ALT .
|
Called when a key-press event is received.
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
MODIFIER_SHIFT ,
MODIFIER_CTRL ,
and
MODIFIER_ALT .
|
Called when a key-up event is received.
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
MODIFIER_SHIFT ,
MODIFIER_CTRL ,
and
MODIFIER_ALT .
|