Helpful
    Preparing search index...

    Function createKeyboardActivate

    • Type Parameters

      • T = Element

      Parameters

      • Optionalhandler: KeyboardEventHandler<T>

        The callback handler to invoke when any of the key codes are pressed. If this is undefined, then it will never be invoked

      • Optionalcodes: string[]

        The list of key codes that will fire the event handler. The default value will be DefaultActivateCodes.

      Returns ((e: KeyboardEvent<T>) => void) | undefined

      An object that contains the equivalent keydown event