MCPcopy
hub / github.com/nadbm/react-datasheet / triggerKeyDownEvent

Function triggerKeyDownEvent

test/Datasheet.js:24–26  ·  view source on GitHub ↗
(wrapper, keyCode, options = {})

Source from the content-addressed store, hash-verified

22const DELETE_KEY = 46
23
24const triggerKeyDownEvent = (wrapper, keyCode, options = {}) => {
25 wrapper.simulate('keydown', { keyCode, ...options })
26}
27
28const triggerEvent = (node, keyCode) => {
29 node.dispatchEvent(new Event('focus'))

Callers 1

Datasheet.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected