Arguments for the afterKeyboardNavigate event. Emitted after keyboard navigation moves focus.

interface AfterKeyboardNavigateArgs<T> {
    currentEvent?: MJTimelineEvent<T>;
    domEvent: KeyboardEvent;
    errorMessage?: string;
    key: string;
    success: boolean;
    targetEvent?: MJTimelineEvent<T>;
}

Type Parameters

  • T = any

    The type of the source record

Hierarchy (view full)

Properties

currentEvent?: MJTimelineEvent<T>

The currently focused event (if any).

domEvent: KeyboardEvent

The original keyboard event.

errorMessage?: string

Error message if the operation failed. Only populated when success is false.

key: string

The key that was pressed.

success: boolean

Whether the operation completed successfully. Will be false if an error occurred during the operation.

targetEvent?: MJTimelineEvent<T>

The event that will receive focus (if any).