MCPcopy
hub / github.com/paperwm/PaperWM / replace

Method replace

prefsKeybinding.js:423–434  ·  view source on GitHub ↗
(oldCombo, newCombo)

Source from the content-addressed store, hash-verified

421 }
422
423 replace(oldCombo, newCombo) {
424 const [found, _] = this.find(newCombo);
425 if (found)
426 return;
427 const [oldFound, pos] = this.find(oldCombo);
428 if (oldFound) {
429 this.combos.splice(pos, 1, [newCombo]);
430 } else {
431 this.combos.append(newCombo);
432 }
433 this._store();
434 }
435
436 disable() {
437 this._settings.set_strv(this.action, ['']);

Callers 8

getKeybindStringMethod · 0.80
_translateAboveTabMethod · 0.80
_updateKeybindingMethod · 0.80
accelerator_parseMethod · 0.80
setStateFunction · 0.80
keystrToKeycomboFunction · 0.80
launchFromWorkspaceDirFunction · 0.80
expandCommandlineFunction · 0.80

Calls 2

findMethod · 0.95
_storeMethod · 0.95

Tested by

no test coverage detected