()
| 564 | } |
| 565 | |
| 566 | function 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 |
| 574 | function refocusNode(blockId: string) { |
no test coverage detected