MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / dispatchKeyInner

Function dispatchKeyInner

static/plugins/codemirror/codemirror.js:7203–7217  ·  view source on GitHub ↗
(cm, name, e, handle)

Source from the content-addressed store, hash-verified

7201 }
7202
7203 function dispatchKeyInner(cm, name, e, handle) {
7204 var result = lookupKeyForEditor(cm, name, handle);
7205
7206 if (result == "multi")
7207 { cm.state.keySeq = name; }
7208 if (result == "handled")
7209 { signalLater(cm, "keyHandled", cm, name, e); }
7210
7211 if (result == "handled" || result == "multi") {
7212 e_preventDefault(e);
7213 restartBlink(cm);
7214 }
7215
7216 return !!result
7217 }
7218
7219 // Handle a key from the keydown event.
7220 function handleKeyBinding(cm, e) {

Callers 1

dispatchKeyFunction · 0.85

Calls 4

lookupKeyForEditorFunction · 0.85
signalLaterFunction · 0.85
e_preventDefaultFunction · 0.85
restartBlinkFunction · 0.85

Tested by

no test coverage detected