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

Function dispatchKey

src/cdk-experimental/popover-edit/popover-edit.spec.ts:244–245  ·  view source on GitHub ↗
(cell: HTMLElement, keyCode: number)

Source from the content-addressed store, hash-verified

242
243 describe('arrow keys', () => {
244 const dispatchKey = (cell: HTMLElement, keyCode: number) =>
245 dispatchKeyboardEvent(cell, 'keydown', keyCode);
246
247 it('moves focus up/down/left/right and prevents default', () => {
248 const rowCells = getRowCells();

Callers 1

Calls 1

dispatchKeyboardEventFunction · 0.85

Tested by

no test coverage detected