MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / getInput

Function getInput

lib/web/CodeMirror/keymap/emacs.js:236–241  ·  view source on GitHub ↗
(cm, msg, f)

Source from the content-addressed store, hash-verified

234 }
235
236 function getInput(cm, msg, f) {
237 if (cm.openDialog)
238 cm.openDialog(msg + ": <input type=\"text\" style=\"width: 10em\"/>", f, {bottom: true});
239 else
240 f(prompt(msg, ""));
241 }
242
243 function operateOnWord(cm, op) {
244 var start = cm.getCursor(), end = cm.findPosH(start, 1, "word");

Callers 1

emacs.jsFile · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected