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

Method retargetOverlayPreFocus

packages/pi-tui/src/tui.ts:481–487  ·  view source on GitHub ↗
(removed: OverlayStackEntry)

Source from the content-addressed store, hash-verified

479 }
480
481 private retargetOverlayPreFocus(removed: OverlayStackEntry): void {
482 for (const overlay of this.overlayStack) {
483 if (overlay !== removed && overlay.preFocus === removed.component) {
484 overlay.preFocus = removed.preFocus;
485 }
486 }
487 }
488
489 private isComponentMounted(component: Component): boolean {
490 return this.children.some((child) => this.containsComponent(child, component));

Callers 2

showOverlayMethod · 0.95
hideOverlayMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected