Type Alias A11yFocusSource

A11yFocusSource: {
    debug?: boolean;
    focusEl?: Iterable<FocusableElement | string>;
    source?: string;
    x?: number;
    y?: number;
}

Provides essential data to return focus to an HTMLElement / SVGElement after a series of UI actions like working with context menus and modal dialogs.

Type declaration

  • Optionaldebug?: boolean

    When true logs to console the actions taken in A11yHelper.applyFocusSource.

  • OptionalfocusEl?: Iterable<FocusableElement | string>

    List of targets to attempt to focus.

  • Optionalsource?: string

    The source of the event: 'keyboard' for instance.

  • Optionalx?: number

    Potential X coordinate of initial event.

  • Optionaly?: number

    Potential Y coordinate of initial event.