MCPcopy Create free account
hub / github.com/CodeboxIDE/codebox / _keysFromString

Function _keysFromString

client/vendors/mousetrap.js:722–728  ·  view source on GitHub ↗

* Converts from a string key combination to an array * * @param {string} combination like "command+shift+l" * @return {Array}

(combination)

Source from the content-addressed store, hash-verified

720 * @return {Array}
721 */
722 function _keysFromString(combination) {
723 if (combination === '+') {
724 return ['+'];
725 }
726
727 return combination.split('+');
728 }
729
730 /**
731 * Gets info for a specific key combination

Callers 1

_getKeyInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected