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

    Function isTypingInInput

    • true when keyboard focus is on a "typing surface" — an editable field, textarea, select, or contenteditable element. Used to suppress navigation shortcuts (e.g. [/], number keys) so the user can type into a search box without flipping dimensions.

      Intentionally returns false for <input type="range|checkbox|radio"> — those don't capture text input, so navigation keys should still fire even if focus has landed on them after a click.

      Canonical typing-detection helper. Both InputHandler.isTypingInInput and InputContextManager.isTypingContext delegate here so the two paths cannot diverge — a fix to this function propagates to every typing-aware code path.

      Parameters

      • activeElement: Element | null

        Result of document.activeElement, or any Element | null you want to classify.

      Returns boolean