MCPcopy
hub / github.com/witheve/Eve / handleEsc

Function handleEsc

src/codemirror.js:10072–10083  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10070 }
10071 }
10072 function handleEsc() {
10073 if (key == '<Esc>') {
10074 // Clear input state and get back to normal mode.
10075 clearInputState(cm);
10076 if (vim.visualMode) {
10077 exitVisualMode(cm);
10078 } else if (vim.insertMode) {
10079 exitInsertMode(cm);
10080 }
10081 return true;
10082 }
10083 }
10084 function doKeyToKey(keys) {
10085 // TODO: prevent infinite recursion.
10086 var match;

Callers 2

handleKeyInsertModeFunction · 0.85
handleKeyNonInsertModeFunction · 0.85

Calls 3

clearInputStateFunction · 0.85
exitVisualModeFunction · 0.85
exitInsertModeFunction · 0.85

Tested by

no test coverage detected