[ type ] KeyEvent
Description:
Key event received by the onKey() handler callback.
Type: Object
Properties:
| Name | Type | Description |
|---|---|---|
|
object | The component that triggered the event. |
|
string | One of |
|
number | Numeric code associated with the key. |
|
number | Unique id assigned to a key depending on the current keyboard layout. Not present for global ui.onKey() events. |
|
string | The character produced by the key. Present only for |
|
number | Keyboard modifiers (bitmask or flags). |
|
string | Human-readable representation of modifiers. |
|
boolean | Indicates if ALT key was pressed. |
|
boolean | Indicates if SHIFT key was pressed. |
|
boolean | Indicates if CTRL key was pressed. |
|
boolean | Indicates if META (Windows or Command) key was pressed. |
|
string | One of |
