()
| 68 | } |
| 69 | |
| 70 | function canEnablePaste(): boolean { |
| 71 | const activeElement = document.activeElement; |
| 72 | return activeElement.tagName === "INPUT" || activeElement.tagName === "TEXTAREA" || isContentEditableBeingEdited(); |
| 73 | } |
| 74 | |
| 75 | function canEnableCopy(): boolean { |
| 76 | const sel = window.getSelection(); |
no test coverage detected