MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / dispatchKeyInner

Function dispatchKeyInner

static/libs/codemirror.js:7103–7117  ·  view source on GitHub ↗
(cm, name, e, handle)

Source from the content-addressed store, hash-verified

7101}
7102
7103function dispatchKeyInner(cm, name, e, handle) {
7104 var result = lookupKeyForEditor(cm, name, handle);
7105
7106 if (result == "multi")
7107 { cm.state.keySeq = name; }
7108 if (result == "handled")
7109 { signalLater(cm, "keyHandled", cm, name, e); }
7110
7111 if (result == "handled" || result == "multi") {
7112 e_preventDefault(e);
7113 restartBlink(cm);
7114 }
7115
7116 return !!result
7117}
7118
7119// Handle a key from the keydown event.
7120function 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