Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface TrapFocusOptions

    Options for trapFocus.

    interface TrapFocusOptions {
        autoFocusFirst?: boolean;
    }
    Index
    autoFocusFirst?: boolean

    Park initial focus on the container's first focusable element (default true). Panels that use installTypeToFilter pass false: they focus the CONTAINER instead, so no text field holds focus and the panel's own toggle key survives InputHandler's typing guard (issue #1922). Leaving this at true there would make the two mechanisms fight — the trap's 0 ms timer fires after the panel's synchronous container focus and would silently win.