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

Function getKeymapDefinition

packages/app-core/src/lib/keymaps.ts:1050–1054  ·  view source on GitHub ↗
(id: KeymapId)

Source from the content-addressed store, hash-verified

1048}
1049
1050export function getKeymapDefinition(id: KeymapId): KeymapDefinition {
1051 const definition = KEYMAP_INDEX.get(id);
1052 if (!definition) throw new Error(`Unknown keymap id: ${id}`);
1053 return definition;
1054}
1055
1056export function getKeymapGroupLabel(group: KeymapGroup): string {
1057 return KEYMAP_GROUP_LABELS[group];

Callers 5

keymaps.test.tsFile · 0.90
getDefaultKeymapBindingFunction · 0.85
normalizeKeymapBindingFunction · 0.85
findKeymapConflictFunction · 0.85
getKeymapDisplayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected