---
url: "https://vueda.dev/v3/reference/api/js/display/kbd/shortcutKeys/functions/splitShortcutKeys.md"
title: "splitShortcutKeys"
---

# 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 |
| --- | --- | --- | --- |
| <span id="param-value">value</span> | `string` | yes | The shortcut label to split. |

### Returns

`string[]`

The key labels in display order.

## Source

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