weasel API - v0.8.0
    Preparing search index...

    Interface KeySpec

    Single-keystroke gesture (keydown).

    interface KeySpec {
        key: string | string[];
        kind: "key";
        mods?: Partial<
            {
                alt: boolean
                | "optional";
                ctrl: boolean | "optional";
                meta: boolean | "optional";
                mod: boolean | "optional";
                shift: boolean | "optional";
            },
        >;
        phase?: PhaseSpec;
    }
    Index

    Properties

    Properties

    key: string | string[]

    A single key, or an array of acceptable keys (case-insensitive match).

    kind: "key"
    mods?: Partial<
        {
            alt: boolean
            | "optional";
            ctrl: boolean | "optional";
            meta: boolean | "optional";
            mod: boolean | "optional";
            shift: boolean | "optional";
        },
    >
    phase?: PhaseSpec