(index: number)
| 229 | } |
| 230 | |
| 231 | function switchBlockByBlockNum(index: number) { |
| 232 | const layoutModel = getLayoutModelForStaticTab(); |
| 233 | if (!layoutModel) { |
| 234 | return; |
| 235 | } |
| 236 | layoutModel.switchNodeFocusByBlockNum(index); |
| 237 | setTimeout(() => { |
| 238 | globalRefocus(); |
| 239 | }, 10); |
| 240 | } |
| 241 | |
| 242 | function switchBlockInDirection(direction: NavigateDirection) { |
| 243 | const layoutModel = getLayoutModelForStaticTab(); |
no test coverage detected