Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
34
type
ModififierKey = typeof modifierKeys[number]
35
36
function
isModifierKey(key?: string): key is ModififierKey {
37
return
modifierKeys.includes(key as ModififierKey)
38
}
39
40
const
modifierLocks = [
41
'CapsLock'
,
Callers
2
keydown
Method · 0.85
keyup
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected