MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / run

Function run

src/client/ejs.mjs:95–100  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

93
94 const extraKeys = keymap.of([
95 {key: "ArrowDown", run(cm) {
96 let {main} = cm.state.selection
97 if (!main.empty || main.head < cm.state.doc.length) return false
98 document.activeElement.blur()
99 return true
100 }},
101 {key: "ArrowUp", run(cm) {
102 let {main} = cm.state.selection
103 if (!main.empty || main.head > 0) return false

Callers 2

12_1_arrays.jsFile · 0.85

Calls 4

runCodeFunction · 0.85
revertCodeFunction · 0.85
closeCodeFunction · 0.85
resetSandboxFunction · 0.85

Tested by

no test coverage detected