MCPcopy Index your code
hub / github.com/angular/components / keydown

Function keydown

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

Source from the content-addressed store, hash-verified

24 let treeItemElements: HTMLElement[];
25
26 const keydown = async (key: string, modifierKeys: ModifierKeys = {}) => {
27 const event = new KeyboardEvent('keydown', {key, bubbles: true, ...modifierKeys});
28 treeElement.dispatchEvent(event);
29 await fixture.whenStable();
30 defineTestVariables();
31 };
32
33 const up = async (modifierKeys?: ModifierKeys) => await keydown('ArrowUp', modifierKeys);
34 const down = async (modifierKeys?: ModifierKeys) => await keydown('ArrowDown', modifierKeys);

Callers 11

upFunction · 0.70
downFunction · 0.70
leftFunction · 0.70
rightFunction · 0.70
homeFunction · 0.70
endFunction · 0.70
enterFunction · 0.70
spaceFunction · 0.70
shiftFunction · 0.70
typeFunction · 0.70
tree.spec.tsFile · 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…