Documentation
    Preparing search index...

    Interface KeyModifiers

    The four modifier keys, as booleans — held at the instant of the event.

    Grouped into one record rather than spread across four fields on the event so that "did the user press a chord?" is one object to pass, compare, and log, and so that a source that learns about a fifth modifier (AltGr, a game controller's shoulder) widens one type.

    interface KeyModifiers {
        alt: boolean;
        ctrl: boolean;
        meta: boolean;
        shift: boolean;
    }
    Index
    alt: boolean

    Alt (Option).

    ctrl: boolean

    Control.

    meta: boolean

    Meta (Command, Windows).

    shift: boolean

    Shift.