interface KeyboardnavStore {
    activate: ((namespace: string, e?: KeyboardEvent, options?: {
        suppressHandler?: boolean;
    }) => void);
    activeNamespace: undefined | string;
    appendKey: ((key: string) => void);
    chainState: ChainState;
    deactivate: ((e?: KeyboardEvent, options?: {
        suppressHandler?: boolean;
    }) => void);
    finalizeChain: ((options?: {
        event?: KeyboardEvent;
    }) => void);
    helpVisible: boolean;
    keyChain: string[];
    lastAction: undefined | {
        key: string;
        namespace: string;
    };
    namespaces: Record<string, NamespaceRegistration>;
    popChain: (() => undefined | string);
    register: ((namespace: string, options: NamespaceRegistration) => string);
    resetChain: ((options?: {
        event?: KeyboardEvent;
        preserveChain?: boolean;
        preserveLastAction?: boolean;
        suppressHandler?: boolean;
    }) => void);
    setChain: ((keys: string[]) => void);
    setChainState: ((state: ChainState) => void);
    setHelpVisible: ((val: boolean) => void);
    setLastAction: ((action: undefined | {
        key: string;
        namespace: string;
    }) => void);
    trigger: ((key: string, e: KeyboardEvent) => undefined | {
        chainAction?: KeyboardnavChainAction;
        key: string;
        namespace: string;
    });
    unregister: ((namespace: string) => void);
}

Properties

activate: ((namespace: string, e?: KeyboardEvent, options?: {
    suppressHandler?: boolean;
}) => void)
activeNamespace: undefined | string
appendKey: ((key: string) => void)
chainState: ChainState
deactivate: ((e?: KeyboardEvent, options?: {
    suppressHandler?: boolean;
}) => void)
finalizeChain: ((options?: {
    event?: KeyboardEvent;
}) => void)
helpVisible: boolean
keyChain: string[]
lastAction: undefined | {
    key: string;
    namespace: string;
}
namespaces: Record<string, NamespaceRegistration>
popChain: (() => undefined | string)
register: ((namespace: string, options: NamespaceRegistration) => string)
resetChain: ((options?: {
    event?: KeyboardEvent;
    preserveChain?: boolean;
    preserveLastAction?: boolean;
    suppressHandler?: boolean;
}) => void)
setChain: ((keys: string[]) => void)
setChainState: ((state: ChainState) => void)
setHelpVisible: ((val: boolean) => void)
setLastAction: ((action: undefined | {
    key: string;
    namespace: string;
}) => void)
trigger: ((key: string, e: KeyboardEvent) => undefined | {
    chainAction?: KeyboardnavChainAction;
    key: string;
    namespace: string;
})
unregister: ((namespace: string) => void)