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

Function detachVimMap

lib/web/CodeMirror/keymap/vim.js:269–280  ·  view source on GitHub ↗
(cm, next)

Source from the content-addressed store, hash-verified

267 }
268
269 function detachVimMap(cm, next) {
270 if (this == CodeMirror.keyMap.vim) {
271 CodeMirror.rmClass(cm.getWrapperElement(), "cm-fat-cursor");
272 if (cm.getOption("inputStyle") == "contenteditable" && document.body.style.caretColor != null) {
273 disableFatCursorMark(cm);
274 cm.getInputField().style.caretColor = "";
275 }
276 }
277
278 if (!next || next.attach != attachVimMap)
279 leaveVimMode(cm);
280 }
281 function attachVimMap(cm, prev) {
282 if (this == CodeMirror.keyMap.vim) {
283 CodeMirror.addClass(cm.getWrapperElement(), "cm-fat-cursor");

Callers

nothing calls this directly

Calls 2

disableFatCursorMarkFunction · 0.85
leaveVimModeFunction · 0.85

Tested by

no test coverage detected