MCPcopy Create free account
hub / github.com/angular/components / keydown

Function keydown

src/aria/combobox/combobox.spec.ts:27–37  ·  view source on GitHub ↗
(key: string, modifierKeys: {} = {})

Source from the content-addressed store, hash-verified

25 let inputElement: HTMLInputElement;
26
27 const keydown = async (key: string, modifierKeys: {} = {}) => {
28 await focus();
29 inputElement.dispatchEvent(
30 new KeyboardEvent('keydown', {
31 key,
32 bubbles: true,
33 ...modifierKeys,
34 }),
35 );
36 await fixture.whenStable();
37 };
38
39 const input = async (value: string) => {
40 await focus();

Callers 9

upFunction · 0.70
downFunction · 0.70
enterFunction · 0.70
escapeFunction · 0.70
combobox.spec.tsFile · 0.70
leftFunction · 0.70
rightFunction · 0.70
homeFunction · 0.70
endFunction · 0.70

Calls 2

focusFunction · 0.70
dispatchEventMethod · 0.65

Tested by

no test coverage detected