MCPcopy Index your code
hub / github.com/PaulTaykalo/objc-dependency-visualizer / lookupKey

Function lookupKey

Scripts/ace/keybinding-vim.js:5198–5211  ·  view source on GitHub ↗
(hashId, key, e)

Source from the content-addressed store, hash-verified

5196 home:'Home',end:'End',pageup:'PageUp',pagedown:'PageDown', enter: 'CR'
5197 };
5198 function lookupKey(hashId, key, e) {
5199 if (key.length > 1 && key[0] == "n") {
5200 key = key.replace("numpad", "");
5201 }
5202 key = specialKey[key] || key;
5203 var name = '';
5204 if (e.ctrlKey) { name += 'C-'; }
5205 if (e.altKey) { name += 'A-'; }
5206 if (e.shiftKey) { name += 'S-'; }
5207
5208 name += key;
5209 if (name.length > 1) { name = '<' + name + '>'; }
5210 return name;
5211 }
5212 var handleKey = Vim.handleKey.bind(Vim);
5213 Vim.handleKey = function(cm, key, origin) {
5214 return cm.operation(function() {

Callers 1

keybinding-vim.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected