(event: ClipboardEvent)
| 627 | function writeClipboardWithSelection(value: string) { |
| 628 | let copied = false; |
| 629 | const onCopy = (event: ClipboardEvent) => { |
| 630 | event.clipboardData?.setData("text/plain", value); |
| 631 | event.preventDefault(); |
| 632 | copied = true; |
| 633 | }; |
| 634 | const textarea = document.createElement("textarea"); |
| 635 | textarea.value = value; |
| 636 | textarea.setAttribute("readonly", ""); |
nothing calls this directly
no outgoing calls
no test coverage detected