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

Method getUIEventModifiers

src/system/index.ts:11–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9 readonly pointer = new PointerHost(this)
10
11 getUIEventModifiers(): EventModifierInit {
12 return {
13 altKey: this.keyboard.modifiers.Alt,
14 ctrlKey: this.keyboard.modifiers.Control,
15 metaKey: this.keyboard.modifiers.Meta,
16 shiftKey: this.keyboard.modifiers.Shift,
17 modifierAltGraph: this.keyboard.modifiers.AltGraph,
18 modifierCapsLock: this.keyboard.modifiers.CapsLock,
19 modifierFn: this.keyboard.modifiers.Fn,
20 modifierFnLock: this.keyboard.modifiers.FnLock,
21 modifierNumLock: this.keyboard.modifiers.NumLock,
22 modifierScrollLock: this.keyboard.modifiers.ScrollLock,
23 modifierSymbol: this.keyboard.modifiers.Symbol,
24 modifierSymbolLock: this.keyboard.modifiers.SymbolLock,
25 }
26 }
27}

Callers 1

dispatchUIEventFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected