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

Function keydown

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

Source from the content-addressed store, hash-verified

37 let tabPanelElements: HTMLElement[];
38
39 const keydown = async (key: string, modifierKeys: ModifierKeys = {}) => {
40 tabListElement.dispatchEvent(
41 new KeyboardEvent('keydown', {
42 key,
43 bubbles: true,
44 ...modifierKeys,
45 }),
46 );
47 await fixture.whenStable();
48 defineTestVariables();
49 };
50
51 const click = async (target: HTMLElement, eventInit?: PointerEventInit) => {
52 target.dispatchEvent(

Callers 8

spaceFunction · 0.70
enterFunction · 0.70
upFunction · 0.70
downFunction · 0.70
leftFunction · 0.70
rightFunction · 0.70
homeFunction · 0.70
endFunction · 0.70

Calls 2

defineTestVariablesFunction · 0.70
dispatchEventMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…