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

Function isModifierKey

lib/web/CodeMirror/src/input/keymap.js:121–124  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

119// Modifier key presses don't count as 'real' key presses for the
120// purpose of keymap fallthrough.
121export function isModifierKey(value) {
122 let name = typeof value == "string" ? value : keyNames[value.keyCode]
123 return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod"
124}
125
126export function addModifierNames(name, event, noShift) {
127 let base = name

Callers 1

dispatchKeyFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected