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

Function addCommandCombo

src/lib/keyBindings.js:671–679  ·  view source on GitHub ↗
(map, name, combo)

Source from the content-addressed store, hash-verified

669}
670
671function addCommandCombo(map, name, combo) {
672 if (!combo) return;
673 let entry = map.get(name);
674 if (!entry) {
675 entry = new Set();
676 map.set(name, entry);
677 }
678 entry.add(combo);
679}
680
681function normalizeKey(key, platform = "win") {
682 if (!key) return null;

Callers 2

pushCommandComboFunction · 0.85

Calls 3

setMethod · 0.80
addMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected