(key, type, extra)
| 181 | }); |
| 182 | |
| 183 | const sendKeyboardEvent = (key, type, extra) => { |
| 184 | if (type == null) type = "keydown"; |
| 185 | if (extra == null) extra = {}; |
| 186 | handlerStack.bubbleEvent( |
| 187 | type, |
| 188 | Object.assign(extra, { |
| 189 | type, |
| 190 | key, |
| 191 | preventDefault() {}, |
| 192 | stopImmediatePropagation() {}, |
| 193 | }), |
| 194 | ); |
| 195 | }; |
| 196 | |
| 197 | const sendKeyboardEvents = (keys) => { |
| 198 | for (const key of keys.split("")) { |
no test coverage detected