Skip to content

@jsvision/core / KeyEvent

Interface: KeyEvent

Defined in: input/events.ts:13

A printable character or named key press.

Properties

alt

readonly alt: boolean

Defined in: input/events.ts:18


codepoint?

readonly optional codepoint?: number

Defined in: input/events.ts:21

Unicode code point when key is a printable character; omitted for named keys.


ctrl

readonly ctrl: boolean

Defined in: input/events.ts:17


key

readonly key: string

Defined in: input/events.ts:16

Printable → the character; named key → a lowercase name (see KEY_NAMES).


shift

readonly shift: boolean

Defined in: input/events.ts:19


type

readonly type: "key"

Defined in: input/events.ts:14