(binding: string, kind: KeymapKind)
| 1454 | } |
| 1455 | |
| 1456 | export function formatKeymapBinding(binding: string, kind: KeymapKind): string { |
| 1457 | if (kind === "shortcut") { |
| 1458 | return formatKeyToken(binding); |
| 1459 | } |
| 1460 | return binding |
| 1461 | .split(/\s+/) |
| 1462 | .map((token) => formatKeyToken(token)) |
| 1463 | .join(" "); |
| 1464 | } |
| 1465 | |
| 1466 | export function getKeymapDisplay( |
| 1467 | overrides: KeymapOverrides | null | undefined, |
no test coverage detected