MCPcopy
hub / github.com/hokein/electron-sample-apps / isModifierKey

Function isModifierKey

mini-code-editor/cm/lib/codemirror.js:2115–2118  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

2113 return lookup(map);
2114 }
2115 function isModifierKey(event) {
2116 var name = keyNames[e_prop(event, "keyCode")];
2117 return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod";
2118 }
2119
2120 CodeMirror.fromTextArea = function(textarea, options) {
2121 if (!options) options = {};

Callers 1

handleKeyBindingFunction · 0.85

Calls 1

e_propFunction · 0.85

Tested by

no test coverage detected