MCPcopy
hub / github.com/ajaxorg/ace / vimKeyToKeyName

Function vimKeyToKeyName

src/keyboard/vim_test.js:252–256  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

250}
251
252function vimKeyToKeyName(key) {
253 return key.replace(/[CS]-|CR|BS/g, function(part) {
254 return {"C-": "Ctrl-", "S-": "Shift-", CR: "Return", BS: "Backspace"}[part];
255 });
256}
257
258function testVim(name, run, opts, expectedFail) {
259 var vimOpts = {

Callers 1

testVimFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…