@jsvision/core / KeyEvent
Interface: KeyEvent
Defined in: input/events.ts:13
A printable character or named key press.
Properties
alt
readonlyalt:boolean
Defined in: input/events.ts:18
codepoint?
readonlyoptionalcodepoint?:number
Defined in: input/events.ts:21
Unicode code point when key is a printable character; omitted for named keys.
ctrl
readonlyctrl:boolean
Defined in: input/events.ts:17
key
readonlykey:string
Defined in: input/events.ts:16
Printable → the character; named key → a lowercase name (see KEY_NAMES).
shift
readonlyshift:boolean
Defined in: input/events.ts:19
type
readonlytype:"key"
Defined in: input/events.ts:14