Line

ui/client/features/shell/domain/TabKeys

Pure (DOMAIN-001): WAI-ARIA tablist keyboard navigation (roving focus).

Cockpit client (features), v0.9. Source: ui/client/features/shell/domain/TabKeys.ts.

Functions#

nextTabId()#

nextTabId(tabs, currentId, key): string | null

Defined in: ui/client/features/shell/domain/TabKeys.ts:6

The id to move to for a key press on the tab currentId, skipping disabled tabs and wrapping; null when the key is not a tablist key.

Parameters#

tabs

ShellTab[]

currentId

string

key

string

Returns#

string | null