SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    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.