MCPcopy Create free account
hub / github.com/TextGeneratorio/text-generator.io / isModifierKey

Function isModifierKey

static/libs/codemirror.js:6723–6726  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

6721// Modifier key presses don't count as 'real' key presses for the
6722// purpose of keymap fallthrough.
6723function isModifierKey(value) {
6724 var name = typeof value == "string" ? value : keyNames[value.keyCode];
6725 return name == "Ctrl" || name == "Alt" || name == "Shift" || name == "Mod"
6726}
6727
6728function addModifierNames(name, event, noShift) {
6729 var base = name;

Callers 1

dispatchKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected