MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / buildResolvedKeyBindingsSnapshot

Function buildResolvedKeyBindingsSnapshot

src/cm/commandRegistry.js:1449–1460  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1447}
1448
1449function buildResolvedKeyBindingsSnapshot() {
1450 const bindingNames = new Set([
1451 ...Object.keys(keyBindings),
1452 ...Object.keys(resolvedKeyBindings ?? {}),
1453 ]);
1454
1455 return Object.fromEntries(
1456 Array.from(bindingNames, (name) => [name, resolveBindingInfo(name)]).filter(
1457 ([, binding]) => binding,
1458 ),
1459 );
1460}
1461
1462function toCodeMirrorKey(combo) {
1463 if (!combo) return null;

Callers 1

rebuildKeymapFunction · 0.85

Calls 1

resolveBindingInfoFunction · 0.85

Tested by

no test coverage detected