public interface KeyEvent extends UiEventModifier
This event occurs when a user performs some keyboard action. For example, presses or releases a keyboard key.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
character()
Returns a UTF-8 character associated with the physical key,
if it has a printed representation.
|
DomKeyCode |
domKeyCode()
Returns the code of the physical key used in the event.
|
keyModifiers
currentTarget, isBubbles, isCancelable, isTrusted, phase, preventDefault, stopPropagation, target, type
DomKeyCode domKeyCode()
java.lang.String character()
Otherwise, returns a pre-defined value, such as "Alt" for the Alt key. The possible values are listed in the W3C specification.