MCPcopy Index your code
hub / github.com/DHTMLX/gantt / dispatchKey

Function dispatchKey

samples/common/codehighlight/codemirror.js:7141–7157  ·  view source on GitHub ↗
(cm, name, e, handle)

Source from the content-addressed store, hash-verified

7139 var stopSeq = new Delayed;
7140
7141 function dispatchKey(cm, name, e, handle) {
7142 var seq = cm.state.keySeq;
7143 if (seq) {
7144 if (isModifierKey(name)) { return "handled" }
7145 if (/\'$/.test(name))
7146 { cm.state.keySeq = null; }
7147 else
7148 { stopSeq.set(50, function () {
7149 if (cm.state.keySeq == seq) {
7150 cm.state.keySeq = null;
7151 cm.display.input.reset();
7152 }
7153 }); }
7154 if (dispatchKeyInner(cm, seq + " " + name, e, handle)) { return true }
7155 }
7156 return dispatchKeyInner(cm, name, e, handle)
7157 }
7158
7159 function dispatchKeyInner(cm, name, e, handle) {
7160 var result = lookupKeyForEditor(cm, name, handle);

Callers 3

handleKeyBindingFunction · 0.85
handleCharBindingFunction · 0.85
handleMappedButtonFunction · 0.85

Calls 2

isModifierKeyFunction · 0.85
dispatchKeyInnerFunction · 0.85

Tested by

no test coverage detected