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

Function handleEsc

lib/web/CodeMirror/keymap/vim.js:882–893  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

880 }
881 }
882 function handleEsc() {
883 if (key == '<Esc>') {
884 // Clear input state and get back to normal mode.
885 clearInputState(cm);
886 if (vim.visualMode) {
887 exitVisualMode(cm);
888 } else if (vim.insertMode) {
889 exitInsertMode(cm);
890 }
891 return true;
892 }
893 }
894 function doKeyToKey(keys) {
895 // TODO: prevent infinite recursion.
896 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