SheetXL - v1.0.2
    Preparing search index...

    Function whenFocus

    • Returns a promise that resolves when the specified element gains focus.

      Parameters

      • elementSource: HTMLElement | SVGElement

        The element to check for focus.

      • ignoreDoc: boolean = false

        Whether to ignore the document's focus state.

      Returns Promise<boolean>

      A promise that resolves to true if the element gains focus, false otherwise.