Interface KeyEvent

A keyboard event payload.

Hierarchy

  • BaseInputEvent<"key">
    • KeyEvent

Properties

code: string

The key pressed, see the docs on JS's KeyboardEvent.code for a description.

down: boolean

Whether the key was pressed.

modifiers: KeyModifiers

The held modifiers.

repeat: boolean

Whether the event is a repeat event.

source: string | number

The identifier, unique per client + device combo.

type: "key"

The event type.

Generated using TypeDoc