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

Function dialog

lib/web/CodeMirror/keymap/vim.js:4113–4122  ·  view source on GitHub ↗
(cm, template, shortText, onClose, options)

Source from the content-addressed store, hash-verified

4111 return vim.searchState_ || (vim.searchState_ = new SearchState());
4112 }
4113 function dialog(cm, template, shortText, onClose, options) {
4114 if (cm.openDialog) {
4115 cm.openDialog(template, onClose, { bottom: true, value: options.value,
4116 onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp,
4117 selectValueOnOpen: false});
4118 }
4119 else {
4120 onClose(prompt(shortText, ''));
4121 }
4122 }
4123 function splitBySlash(argString) {
4124 return splitBySeparator(argString, '/');
4125 }

Callers 1

showPromptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected