Function isFocusable

  • Check if an element is focusable (visible and either interactive or with tabindex). This includes programatically focusable elements.

    Parameters

    • element: Element

      An Element for which to test focusability.

    Returns boolean

    true if the element is focusable, otherwise false.