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

Method setWaveAIFocused

frontend/app/store/focusManager.ts:38–45  ·  view source on GitHub ↗
(force: boolean = false)

Source from the content-addressed store, hash-verified

36 }
37
38 setWaveAIFocused(force: boolean = false) {
39 const isAlreadyFocused = globalStore.get(this.focusType) == "waveai";
40 if (!force && isAlreadyFocused) {
41 return;
42 }
43 globalStore.set(this.focusType, "waveai");
44 this.refocusNode();
45 }
46
47 setBlockFocus(force: boolean = false) {
48 const ftype = globalStore.get(this.focusType);

Callers 2

handleMouseDownFunction · 0.45
requestWaveAIFocusMethod · 0.45

Calls 3

refocusNodeMethod · 0.95
getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected