Skip to main content

Type Alias: KeyCallback()

KeyCallback = (key, event) => void

Defined in: src/interaction/KeyboardInput.ts:31

A per-key or wildcard callback. key is the normalized key name.

Parameters​

key​

string

event​

KeyboardEvent

Returns​

void