MCPcopy Create free account
hub / github.com/TruthHun/BookStack / lookupKeyForEditor

Function lookupKeyForEditor

static/mergely/lib/codemirror.js:4096–4103  ·  view source on GitHub ↗
(cm, name, handle)

Source from the content-addressed store, hash-verified

4094 }
4095
4096 function lookupKeyForEditor(cm, name, handle) {
4097 for (var i = 0; i < cm.state.keyMaps.length; i++) {
4098 var result = lookupKey(name, cm.state.keyMaps[i], handle, cm);
4099 if (result) return result;
4100 }
4101 return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm))
4102 || lookupKey(name, cm.options.keyMap, handle, cm);
4103 }
4104
4105 var stopSeq = new Delayed;
4106 function dispatchKey(cm, name, e, handle) {

Callers 1

dispatchKeyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected