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

Function onPromptClose

lib/web/CodeMirror/keymap/vim.js:1388–1395  ·  view source on GitHub ↗
(query)

Source from the content-addressed store, hash-verified

1386 });
1387 }
1388 function onPromptClose(query) {
1389 cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
1390 handleQuery(query, true /** ignoreCase */, true /** smartCase */);
1391 var macroModeState = vimGlobalState.macroModeState;
1392 if (macroModeState.isRecording) {
1393 logSearchQuery(macroModeState, query);
1394 }
1395 }
1396 function onPromptKeyUp(e, query, close) {
1397 var keyName = CodeMirror.keyName(e), up, offset;
1398 if (keyName == 'Up' || keyName == 'Down') {

Callers

nothing calls this directly

Calls 3

handleQueryFunction · 0.85
logSearchQueryFunction · 0.85
resetMethod · 0.65

Tested by

no test coverage detected