MCPcopy Index your code
hub / github.com/witheve/Eve / onPromptKeyDown

Function onPromptKeyDown

src/codemirror.js:10601–10619  ·  view source on GitHub ↗
(e, query, close)

Source from the content-addressed store, hash-verified

10599 }
10600 }
10601 function onPromptKeyDown(e, query, close) {
10602 var keyName = CodeMirror.keyName(e);
10603 if (keyName == 'Esc' || keyName == 'Ctrl-C' || keyName == 'Ctrl-[' ||
10604 (keyName == 'Backspace' && query == '')) {
10605 vimGlobalState.searchHistoryController.pushInput(query);
10606 vimGlobalState.searchHistoryController.reset();
10607 updateSearchQuery(cm, originalQuery);
10608 clearSearchHighlight(cm);
10609 cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
10610 CodeMirror.e_stop(e);
10611 clearInputState(cm);
10612 close();
10613 cm.focus();
10614 } else if (keyName == 'Ctrl-U') {
10615 // Ctrl-U clears input.
10616 CodeMirror.e_stop(e);
10617 close('');
10618 }
10619 }
10620 switch (command.searchArgs.querySrc) {
10621 case 'prompt':
10622 var macroModeState = vimGlobalState.macroModeState;

Callers

nothing calls this directly

Calls 10

updateSearchQueryFunction · 0.85
clearSearchHighlightFunction · 0.85
clearInputStateFunction · 0.85
replaceFunction · 0.85
stopFunction · 0.85
scrollToMethod · 0.80
focusMethod · 0.80
operationMethod · 0.80
nextFunction · 0.70
resetMethod · 0.45

Tested by

no test coverage detected