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
| Name | Type | Required | Description |
|---|---|---|---|
| value | string | yes | The shortcut label to split. |
Returns
string[]
The key labels in display order.
Source
client/lib/display/kbd/shortcutKeys.js:42