Event
Generic input event type.
Type | Object |
Class methods
isShiftPressed()
Return whether Shift key is pressed.
Return
Boolean
isControlPressed()
Return whether Control key is pressed.
Return
Boolean
isAltPressed()
Return whether Alt key is pressed.
Return
Boolean
isMetaPressed()
Return whether Win or Command key is pressed.
Return
Boolean
Class properties
Integer
maskShift
Modifier for Shift key.
Integer
maskContrl
Modifier for Control key.
Integer
maskAlt
Modifier for Alt key.
Integer
maskMeta
Modifier for Win or Command key.
Properties
EventType
type
The type of the event.
Integer
modifiers
A bit array of keyboard modifiers of the event.
Integer
timestamp
Time when event was created, starts from when machine was booted.