Documentation
    Preparing search index...

    Interface MockForwardedKey

    One forwarded keystroke with its source window.

    const last = service.mock.state().forwarded.at(-1);
    last?.key === 'j';
    interface MockForwardedKey {
        alt: boolean;
        code: string;
        ctrl: boolean;
        key: string;
        meta: boolean;
        shift: boolean;
        windowId: string;
    }

    Hierarchy

    • Omit<KeysForwardMessage, "type">
      • MockForwardedKey
    Index

    Properties

    alt: boolean

    KeyboardEvent.altKey.

    code: string

    KeyboardEvent.code -- physical key position (e.g., "KeyS", "Enter").

    ctrl: boolean

    KeyboardEvent.ctrlKey.

    key: string

    KeyboardEvent.key -- character intent (e.g., "s", "Enter", "ArrowDown").

    meta: boolean

    KeyboardEvent.metaKey.

    shift: boolean

    KeyboardEvent.shiftKey.

    windowId: string

    Window that forwarded the keystroke.