CommonKey
Index
Variables
readonlyALT
Bitmask component for the KeyboardEvent.altKey modifier
readonlyCTRL
Bitmask component for the KeyboardEvent.ctrlKey modifier
readonlyMETA
Bitmask component for the KeyboardEvent.metaKey modifier
readonlySHIFT
Bitmask component for the KeyboardEvent.shiftKey modifier
Functions
readonlyGetModifiers
Parameters
event: KeyboardEvent
Returns number
readonlyIsPressed
Parameters
event: KeyboardEvent
key: string
modifiers: number = null
Returns boolean
Namespace with helper functions for validating key presses.