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

Function getFocusedBlockId

frontend/app/store/global.ts:566–571  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564}
565
566function getFocusedBlockId(): string {
567 const layoutModel = getLayoutModelForStaticTab();
568 if (layoutModel?.focusedNode == null) return null;
569 const focusedLayoutNode = globalStore.get(layoutModel.focusedNode);
570 return focusedLayoutNode?.data?.blockId;
571}
572
573// pass null to refocus the currently focused block
574function refocusNode(blockId: string) {

Callers 2

registerGlobalKeysFunction · 0.90
refocusNodeFunction · 0.85

Calls 2

getMethod · 0.80

Tested by

no test coverage detected