Event thrown on a game object for a key event

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    • key: Keys

      The key responsible for throwing the event

    • Optional value: string

      The key's typed value the browser detected

    • Optional originalEvent: KeyboardEvent

      The original keyboard event that Excalibur handled

    Returns KeyEvent

Properties

key: Keys

The key responsible for throwing the event

originalEvent?: KeyboardEvent

The original keyboard event that Excalibur handled

other: any

Other target object for this event

target: any

Target object for this event.

value?: string

The key's typed value the browser detected

Accessors

  • get bubbles(): boolean
  • If set to false, prevents event from propagating to other actors. If true it will be propagated to all actors that apply.

    Returns boolean

  • set bubbles(value: boolean): void
  • Parameters

    • value: boolean

    Returns void

Methods