MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / formatKeymapBinding

Function formatKeymapBinding

packages/app-core/src/lib/keymaps.ts:1456–1464  ·  view source on GitHub ↗
(binding: string, kind: KeymapKind)

Source from the content-addressed store, hash-verified

1454}
1455
1456export 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
1466export function getKeymapDisplay(
1467 overrides: KeymapOverrides | null | undefined,

Callers 3

KeymapSettingsFunction · 0.90
KeymapRecorderModalFunction · 0.90
getKeymapDisplayFunction · 0.85

Calls 1

formatKeyTokenFunction · 0.85

Tested by

no test coverage detected