MCPcopy Index your code
hub / github.com/DHTMLX/gantt / isModifierKey

Function isModifierKey

samples/common/codehighlight/codemirror.js:6778–6781  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6776 // Modifier key presses don't count as 'real' key presses for the
6777 // purpose of keymap fallthrough.
6778 function isModifierKey(value) {
6779 var name = typeof value == "string" ? value : keyNames[value.keyCode];
6780 return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod"
6781 }
6782
6783 function addModifierNames(name, event, noShift) {
6784 var base = name;

Callers 1

dispatchKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected