MCPcopy Create free account
hub / github.com/codename-co/stack / clear

Function clear

hub/astray/keyboard.js:280–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

278 function bindKey(keyCombo, callback, endCallback) {
279
280 function clear() {
281 if(keys && keys.length) {
282 var keyBindingGroup = keyBindingGroups[keys.length];
283
284 if(keyBindingGroup.indexOf(keyBinding) > -1) {
285 var index = keyBindingGroups[keys.length].indexOf(keyBinding);
286 keyBindingGroups[keys.length].splice(index, 1);
287 }
288 }
289 }
290
291 //create an array of combos from the first argument
292 var bindSets = keyCombo.toLowerCase().replace(/\s/g, '').split(',');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected