MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / canEnablePaste

Function canEnablePaste

frontend/app/app.tsx:70–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

canEnableCutFunction · 0.85
handleContextMenuFunction · 0.85

Calls 1

Tested by

no test coverage detected