API

Type Alias KeyboardConditions

Conditions for keyboard inputs.

type KeyboardConditions = {
    key?: number;
    modifiers?: InputModifiers;
}
Index
key?: number

Key code of the current key being resolved. Omit to match any key.

modifiers?: InputModifiers

Modifier key state. Only specified keys are checked; omitted = don't-care.