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

Function handleMacroRecording

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

Source from the content-addressed store, hash-verified

867 findKey: function(cm, key, origin) {
868 var vim = maybeInitVimState(cm);
869 function handleMacroRecording() {
870 var macroModeState = vimGlobalState.macroModeState;
871 if (macroModeState.isRecording) {
872 if (key == 'q') {
873 macroModeState.exitMacroRecordMode();
874 clearInputState(cm);
875 return true;
876 }
877 if (origin != 'mapping') {
878 logKey(macroModeState, key);
879 }
880 }
881 }
882 function handleEsc() {
883 if (key == '<Esc>') {
884 // 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