Dockview
    Preparing search index...

    Interface IKeyboardNavigationHost

    interface IKeyboardNavigationHost {
        activeGroup: DockviewGroupPanel | undefined;
        activePanel: IDockviewPanel | undefined;
        groups: DockviewGroupPanel[];
        onDidChangePopouts: DockviewEvent<void>;
        onDidMutateLayout: DockviewEvent<DockviewLayoutMutationEvent>;
        onWillMutateLayout: DockviewEvent<DockviewLayoutMutationEvent>;
        options: DockviewComponentOptions;
        rootElement: HTMLElement;
        adjacentGroup(
            group: DockviewGroupPanel,
            reverse: boolean,
        ): DockviewGroupPanel | undefined;
        adjacentGroupInDirection(
            group: DockviewGroupPanel,
            direction: GroupNavigationDirection,
        ): DockviewGroupPanel | undefined;
        announce(message: string): void;
        dockPanel(
            panel: IDockviewPanel,
            group: DockviewGroupPanel,
            position: Position,
        ): void;
        floatPanel(panel: IDockviewPanel): void;
        getPopoutWindows(): Window[];
        ownsElement(node: Node): boolean;
        showDropPreview(
            group: DockviewGroupPanel,
            position: Position,
        ): DockviewIDisposable;
    }

    Implemented by

    Index

    Properties

    activeGroup: DockviewGroupPanel | undefined
    activePanel: IDockviewPanel | undefined
    onDidChangePopouts: DockviewEvent<void>

    Fires before / after a structural layout change; used to restore focus on close.

    rootElement: HTMLElement

    The outermost dockview element (the shell, which also contains edge groups). A getter: it must resolve to the shell once that exists, not the inner gridview, or keydowns from edge groups are missed.

    Methods

    • Live popout Window handles + a signal when that set changes. Keyboard services attach their document listeners to each popout document too, so the keys work inside a popped-out window (a separate document).

      Returns Window[]

    • Does this dock own node, in any of its windows? True when the node is inside the main shell, or inside one of this component's popout documents. Replaces a single-document rootElement.contains so keyboard handling and focus gating recognise events/elements that live in a popout window.

      Parameters

      • node: Node

      Returns boolean