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

Function dispatchKeyInner

external/.scrollLibs.js:9809–9825  ·  view source on GitHub ↗
(cm, name, e, handle)

Source from the content-addressed store, hash-verified

9807 }
9808
9809 function dispatchKeyInner(cm, name, e, handle) {
9810 var result = lookupKeyForEditor(cm, name, handle)
9811
9812 if (result == "multi") {
9813 cm.state.keySeq = name
9814 }
9815 if (result == "handled") {
9816 signalLater(cm, "keyHandled", cm, name, e)
9817 }
9818
9819 if (result == "handled" || result == "multi") {
9820 e_preventDefault(e)
9821 restartBlink(cm)
9822 }
9823
9824 return !!result
9825 }
9826
9827 // Handle a key from the keydown event.
9828 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