Function disableKeyboardInteractivity

  • import { disableKeyboardInteractivity } from '@src/hylo-components/utils/usefull/usefull';

    Disables the keyboard interactivity of links, buttons, hylo-router-link, hylo-button, hylo-accessibility-button components inside the scope element.

    Prevents keyboard lock of hidden HTMLElements (display: none) which contain interactive elements.

    Optional the function searches for HTMLElements which have the style "display: none" inside the scope first and than calls itself with these elements as new scope.

    Parameters

    • scope: HTMLElement

      a HTMLElement which defines the scope/parent of the action

    • display_none: boolean = false

      find all HTMLElements with "display: none" inside the scope first

    • Optional additional: string

      a css query defining additional HTMLElements to disable

    Returns void

Generated using TypeDoc