Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/shell/hooks/useRailKeys

Cockpit client (features), next. Source: ui/client/features/shell/hooks/useRailKeys.tsx.

Functions#

useRailKeys()#

useRailKeys(count): object

Defined in: ui/client/features/shell/hooks/useRailKeys.tsx:8

Roving-focus keyboard handling of the screens rail: arrows / Home / End move focus between the screen links (only one is in the tab order); Enter is the link's own activation.

Parameters#

count

number

Returns#

object

listRef

listRef: RefObject<HTMLDivElement | null>

onKeyDown

onKeyDown: (e) => void

Parameters
e

KeyboardEvent<HTMLElement>

Returns

void