pseudo-dom
    Preparing search index...

    Type Alias KeyboardEventInit

    KeyboardEventInit: UIEventInit & {
        altKey?: boolean;
        code?: string;
        ctrlKey?: boolean;
        isComposing?: boolean;
        key?: string;
        location?: number;
        metaKey?: boolean;
        repeat?: boolean;
        shiftKey?: boolean;
    }

    The options for creating a keyboard event, on top of the ones every UI event has.

    Type Declaration

    • OptionalaltKey?: boolean
    • Optionalcode?: string

      The physical key, such as KeyA or Enter (default '')

    • OptionalctrlKey?: boolean
    • OptionalisComposing?: boolean
    • Optionalkey?: string

      The value of the key, such as a or Enter (default '')

    • Optionallocation?: number

      Where on the keyboard the key is (0 standard, 1 left, 2 right, 3 numeric pad) (default 0)

    • OptionalmetaKey?: boolean
    • Optionalrepeat?: boolean

      The key is being held down (default false)

    • OptionalshiftKey?: boolean