MCPcopy Create free account
hub / github.com/breck7/scroll / lookupKeyForEditor

Function lookupKeyForEditor

external/.scrollLibs.js:9771–9779  ·  view source on GitHub ↗
(cm, name, handle)

Source from the content-addressed store, hash-verified

9769 }
9770
9771 function lookupKeyForEditor(cm, name, handle) {
9772 for (var i = 0; i < cm.state.keyMaps.length; i++) {
9773 var result = lookupKey(name, cm.state.keyMaps[i], handle, cm)
9774 if (result) {
9775 return result
9776 }
9777 }
9778 return (cm.options.extraKeys && lookupKey(name, cm.options.extraKeys, handle, cm)) || lookupKey(name, cm.options.keyMap, handle, cm)
9779 }
9780
9781 // Note that, despite the name, this function is also used to check
9782 // for bound mouse clicks.

Callers 1

dispatchKeyInnerFunction · 0.85

Calls 1

lookupKeyFunction · 0.85

Tested by

no test coverage detected