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

Function doKeysFn

lib/web/CodeMirror/test/vim_test.js:144–156  ·  view source on GitHub ↗
(cm)

Source from the content-addressed store, hash-verified

142 var vim = CodeMirror.Vim.maybeInitVimState_(cm);
143
144 function doKeysFn(cm) {
145 return function(args) {
146 if (args instanceof Array) {
147 arguments = args;
148 }
149 for (var i = 0; i < arguments.length; i++) {
150 var result = CodeMirror.Vim.handleKey(cm, arguments[i]);
151 if (!result && cm.state.vim.insertMode) {
152 cm.replaceSelections(fillArray(arguments[i], cm.listSelections().length));
153 }
154 }
155 }
156 }
157 function doInsertModeKeysFn(cm) {
158 return function(args) {
159 if (args instanceof Array) { arguments = args; }

Callers 1

testVimFunction · 0.85

Calls 1

fillArrayFunction · 0.70

Tested by

no test coverage detected