Line

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

ui/client/features/pages-editor/hooks/useTrailShortcuts

Cockpit client (features), next. Source: ui/client/features/pages-editor/hooks/useTrailShortcuts.tsx.

Functions#

useTrailShortcuts()#

useTrailShortcuts(canBack, canForward, back, forward): void

Defined in: ui/client/features/pages-editor/hooks/useTrailShortcuts.tsx:14

Alt+Left / Alt+Right walk the trail. Only acts (and only then swallows the key, so the browser's own history navigation is untouched) when there is somewhere to go and focus is not in a text field or the code editor.

Parameters#

canBack

boolean

canForward

boolean

back

() => void

forward

() => void

Returns#

void