Skip to content

splitShortcutKeys ​

Overview ​

Split a shortcut label into physical key labels.

Whitespace is the explicit separator used by command demos (⌘ ⇧ S, G R). Compact modifier notation from menus (⇧⌘L, ⌘⌫) is also split so shortcut wrappers can render one Kbd per physical key.

Signature ​

splitShortcutKeys(value)

Parameters ​

NameTypeRequiredDescription
valuestringyesThe shortcut label to split.

Returns ​

string[]

The key labels in display order.

Source ​

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