Type Alias A11yFocusSource

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 A11yFocusSource = {
    debug?: boolean;
    focusEl?: Iterable<FocusableElement | string>;
    source?: string;
    x?: number;
    y?: number;
}
Index

Properties

debug?: boolean

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

focusEl?: Iterable<FocusableElement | string>

List of targets to attempt to focus.

source?: string

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

x?: number

Potential X coordinate of initial event.

y?: number

Potential Y coordinate of initial event.