MCPcopy
hub / github.com/ampproject/amphtml / simulateKeyDown

Function simulateKeyDown

test/unit/test-input.js:235–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 });
234
235 function simulateKeyDown() {
236 const event = new /*OK*/ KeyboardEvent('keydown', {
237 'keyCode': 65,
238 'which': 65,
239 bubbles: true,
240 });
241 env.win.document.body.dispatchEvent(event);
242 }
243 }
244);

Callers 1

test-input.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected