MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / setBlockFocus

Method setBlockFocus

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

Source from the content-addressed store, hash-verified

45 }
46
47 setBlockFocus(force: boolean = false) {
48 const ftype = globalStore.get(this.focusType);
49 if (!force && ftype == "node") {
50 return;
51 }
52 globalStore.set(this.focusType, "node");
53 this.refocusNode();
54 }
55
56 waveAIFocusWithin(): boolean {
57 return waveAIHasFocusWithin();

Callers

nothing calls this directly

Calls 3

refocusNodeMethod · 0.95
getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected