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

Function switchBlockByBlockNum

frontend/app/store/keymodel.ts:231–240  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

229}
230
231function 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
242function switchBlockInDirection(direction: NavigateDirection) {
243 const layoutModel = getLayoutModelForStaticTab();

Callers 1

registerGlobalKeysFunction · 0.85

Calls 3

globalRefocusFunction · 0.85

Tested by

no test coverage detected