(element: T, options: ClipboardEventInit = {})
| 218 | * Dispatches a clipboard copy event. |
| 219 | */ |
| 220 | export function dispatchCopyEvent<T extends Element>(element: T, options: ClipboardEventInit = {}) { |
| 221 | const copyEvent = new ClipboardEvent('copy', options); |
| 222 | element.dispatchEvent(copyEvent); |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Dispatches a clipboard paste event. |
no test coverage detected