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

Method focusFirstNode

frontend/layout/lib/layoutModel.ts:1250–1255  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1248 }
1249
1250 focusFirstNode() {
1251 const leafOrder = this.getter(this.leafOrder);
1252 if (leafOrder.length > 0) {
1253 this.focusNode(leafOrder[0].nodeid);
1254 }
1255 }
1256
1257 getFirstBlockId(): string | undefined {
1258 const leafOrder = this.getter(this.leafOrder);

Callers 2

setAIPanelVisibleMethod · 0.80
globalRefocusFunction · 0.80

Calls 1

focusNodeMethod · 0.95

Tested by

no test coverage detected