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

Function isAIPanelTarget

frontend/app/app.tsx:228–237  ·  view source on GitHub ↗
(target: EventTarget)

Source from the content-addressed store, hash-verified

226 return null;
227 };
228 const isAIPanelTarget = (target: EventTarget): boolean => {
229 let elem = target as HTMLElement;
230 while (elem != null) {
231 if (elem.dataset?.aipanel) {
232 return true;
233 }
234 elem = elem.parentElement;
235 }
236 return false;
237 };
238 const handleMouseDown = (e: MouseEvent) => {
239 const timeDiff = Date.now() - windowFocusTime;
240 if (windowFocusTime != null && timeDiff < 50) {

Callers 1

handleMouseDownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected