API

Type Alias InputModifiers

Modifier key state, shared across input sources that support modifiers.

type InputModifiers = {
    alt?: boolean;
    ctrl?: boolean;
    shift?: boolean;
}
Index
alt?: boolean

Alt key pressed

ctrl?: boolean

Ctrl key pressed

shift?: boolean

Shift key pressed