Line

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

ui/client/features/shell/domain/Shortcuts

Pure (DOMAIN-001): global keyboard shortcuts of the shell.

Cockpit client (features), next. Source: ui/client/features/shell/domain/Shortcuts.ts.

Variables#

SHORTCUTS#

const SHORTCUTS: ShortcutInfo[]

Defined in: ui/client/features/shell/domain/Shortcuts.ts:5

Functions#

screenIndexFromKey()#

screenIndexFromKey(key): number | null

Defined in: ui/client/features/shell/domain/Shortcuts.ts:29

Alt 1-5 -> the 0-based index of the primary screen to go to, or null for any other key.

Parameters#

key

string

Returns#

number | null


shortcutAction()#

shortcutAction(e): ShortcutAction | null

Defined in: ui/client/features/shell/domain/Shortcuts.ts:17

Which shell action a key event triggers (Cmd counts as Ctrl on macOS), or null.

Parameters#

e

KeyLike

Returns#

ShortcutAction | null