MCPcopy Create free account
hub / github.com/testing-library/user-event / isModifierKey

Function isModifierKey

src/system/keyboard.ts:36–38  ·  view source on GitHub ↗
(key?: string)

Source from the content-addressed store, hash-verified

34type ModififierKey = typeof modifierKeys[number]
35
36function isModifierKey(key?: string): key is ModififierKey {
37 return modifierKeys.includes(key as ModififierKey)
38}
39
40const modifierLocks = [
41 'CapsLock',

Callers 2

keydownMethod · 0.85
keyupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected