MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getVisibleOverlayFocusRestore

Method getVisibleOverlayFocusRestore

packages/pi-tui/src/tui.ts:461–468  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

459 }
460
461 private getVisibleOverlayFocusRestore(): OverlayFocusRestoreState {
462 const restoreState = this.overlayFocusRestore;
463 if (restoreState.status === "inactive") return restoreState;
464 if (!this.overlayStack.includes(restoreState.overlay) || !this.isOverlayVisible(restoreState.overlay)) {
465 return { status: "inactive" };
466 }
467 return restoreState;
468 }
469
470 private isOverlayFocusAncestor(entry: OverlayStackEntry, component: Component): boolean {
471 const visited = new Set<Component>();

Callers 2

setFocusInternalMethod · 0.95
handleInputMethod · 0.95

Calls 1

isOverlayVisibleMethod · 0.95

Tested by

no test coverage detected