Class KeyDataImpl

The interaction data that stores a single key.

Hierarchy

Implements

Constructors

Properties

altKeyData: boolean = false
codeData: string = ""
ctrlKeyData: boolean = false
currentTargetData: null | EventTarget = null
keyData: string = ""
locationData: number = 0
metaKeyData: boolean = false
repeatData: boolean = false
shiftKeyData: boolean = false
targetData: null | EventTarget = null
timeStampData: number = 0

Accessors

  • get code(): string
  • A string with the code value of the physical key represented by the event. Warning: This ignores the user's keyboard layout, so that if the user presses the key at the "Y" position in a QWERTY keyboard layout this will always return "KeyY", even if the user has a QWERTZ keyboard.

    Returns string

  • get currentTarget(): null | EventTarget
  • A reference to the currently registered target for the event. This is the object to which the event is currently slated to be sent. It's possible this has been changed along the way through retargeting.

    Returns null | EventTarget

  • get timeStamp(): number
  • The time at which the event was created (in milliseconds). By specification, this value is time since epoch—but in reality, browsers' definitions vary. In addition, work is underway to change this to be a DOMHighResTimeStamp instead.

    Returns number

Methods

Generated using TypeDoc