Skip to content

normalizeShortcutKeys

Overview

Normalize a shortcut value into physical key labels.

Arrays are the canonical input for shortcut components because they preserve key boundaries without relying on text parsing. Strings are accepted for compatibility with existing slot content and compact menu notation.

Signature

normalizeShortcutKeys(value)

Parameters

NameTypeRequiredDescription
valuestring | string[]yesShortcut keys as structured labels or display text.

Returns

string[]

The key labels in display order.

Source

client/lib/display/kbd/shortcutKeys.js:25

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2