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

Function keyDownOnPrimaryAction

src/material/chips/chip-row.spec.ts:347–351  ·  view source on GitHub ↗
(keyCode: number, key: string)

Source from the content-addressed store, hash-verified

345 });
346
347 function keyDownOnPrimaryAction(keyCode: number, key: string) {
348 const keyDownEvent = createKeyboardEvent('keydown', keyCode, key);
349 dispatchEvent(primaryAction, keyDownEvent);
350 fixture.detectChanges();
351 }
352
353 function getEditInput(): HTMLElement {
354 return chipNativeElement.querySelector('.mat-chip-edit-input')!;

Callers 1

chip-row.spec.tsFile · 0.85

Calls 2

createKeyboardEventFunction · 0.85
dispatchEventFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…