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

Function keydown

src/aria/grid/grid.spec.ts:56–60  ·  view source on GitHub ↗
(key: string, modifierKeys: ModifierKeys = {})

Source from the content-addressed store, hash-verified

54 let gridInstance: Grid;
55
56 const keydown = async (key: string, modifierKeys: ModifierKeys = {}) => {
57 const event = new KeyboardEvent('keydown', {key, bubbles: true, ...modifierKeys});
58 gridElement.dispatchEvent(event);
59 await fixture.whenStable();
60 };
61
62 const pointerDown = async (target: HTMLElement, eventInit: PointerEventInit = {}) => {
63 target.dispatchEvent(new PointerEvent('click', {bubbles: true, ...eventInit}));

Callers 9

upFunction · 0.70
downFunction · 0.70
leftFunction · 0.70
rightFunction · 0.70
homeFunction · 0.70
endFunction · 0.70
enterFunction · 0.70
spaceFunction · 0.70
grid.spec.tsFile · 0.70

Calls 1

dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…