meo-skia-canvas
    Preparing search index...

    Type Alias KeyboardEventProps

    Payload shared by keydown and keyup, following the DOM's names.

    The handler is also passed a preventDefault() which suppresses the built-in shortcuts -- Command-W to close, Command-F to toggle fullscreen.

    🧪 Not in the HTML Canvas standard.

    type KeyboardEventProps = {
        altKey: boolean;
        code: string;
        ctrlKey: boolean;
        key: string;
        location: number;
        metaKey: boolean;
        repeat: boolean;
        shiftKey: boolean;
    }
    Index
    altKey: boolean

    Whether Alt / Option was held.

    code: string

    The physical key, independent of layout, e.g. "KeyA".

    ctrlKey: boolean

    Whether Control was held.

    key: string

    The character or named key produced, e.g. "a" or "ArrowLeft".

    location: number

    Which of a duplicated key it was: 0 standard, 1 left, 2 right, 3 numpad.

    metaKey: boolean

    Whether Command / Windows was held.

    repeat: boolean

    Whether this is an auto-repeat while the key is held.

    shiftKey: boolean

    Whether Shift was held.