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

Function isContentEditableBeingEdited

frontend/app/app.tsx:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59};
60
61function isContentEditableBeingEdited(): boolean {
62 const activeElement = document.activeElement;
63 return (
64 activeElement &&
65 activeElement.getAttribute("contenteditable") !== null &&
66 activeElement.getAttribute("contenteditable") !== "false"
67 );
68}
69
70function canEnablePaste(): boolean {
71 const activeElement = document.activeElement;

Callers 1

canEnablePasteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected