MCPcopy
hub / github.com/angular/components / keydown

Function keydown

src/aria/menu/menu.spec.ts:25–34  ·  view source on GitHub ↗
(element: Element, key: string, modifierKeys: {} = {})

Source from the content-addressed store, hash-verified

23 let fixture: ComponentFixture<StandaloneMenuExample>;
24
25 const keydown = async (element: Element, key: string, modifierKeys: {} = {}) => {
26 element.dispatchEvent(
27 new KeyboardEvent('keydown', {
28 key,
29 bubbles: true,
30 ...modifierKeys,
31 }),
32 );
33 await fixture.whenStable();
34 };
35
36 const mouseover = async (element: Element) => {
37 element.dispatchEvent(new MouseEvent('mouseover', {bubbles: true}));

Callers 1

menu.spec.tsFile · 0.70

Calls 3

waitForMicrotasksFunction · 0.90
focusinFunction · 0.85
dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…