MCPcopy
hub / github.com/wavetermdev/waveterm / canEnableCut

Function canEnableCut

frontend/app/app.tsx:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80function canEnableCut(): boolean {
81 const sel = window.getSelection();
82 if (document.activeElement?.classList.contains("xterm-helper-textarea")) {
83 return false;
84 }
85 return !util.isBlank(sel?.toString()) && canEnablePaste();
86}
87
88async function getClipboardURL(): Promise<URL> {
89 try {

Callers 1

handleContextMenuFunction · 0.85

Calls 1

canEnablePasteFunction · 0.85

Tested by

no test coverage detected