MCPcopy Create free account
hub / github.com/witheve/Eve / handleMacroRecording

Function handleMacroRecording

src/codemirror.js:10059–10071  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10057 findKey: function(cm, key, origin) {
10058 var vim = maybeInitVimState(cm);
10059 function handleMacroRecording() {
10060 var macroModeState = vimGlobalState.macroModeState;
10061 if (macroModeState.isRecording) {
10062 if (key == 'q') {
10063 macroModeState.exitMacroRecordMode();
10064 clearInputState(cm);
10065 return true;
10066 }
10067 if (origin != 'mapping') {
10068 logKey(macroModeState, key);
10069 }
10070 }
10071 }
10072 function handleEsc() {
10073 if (key == '<Esc>') {
10074 // Clear input state and get back to normal mode.

Callers 1

handleKeyNonInsertModeFunction · 0.85

Calls 2

clearInputStateFunction · 0.85
logKeyFunction · 0.85

Tested by

no test coverage detected