Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/kimi-code
/ setFocus
Method
setFocus
packages/pi-tui/src/tui.ts:376–378 ·
view source on GitHub ↗
(component: Component | null)
Source
from the content-addressed store, hash-verified
374
}
375
376
setFocus(component: Component | null): void {
377
this.setFocusInternal({ component, overlayFocusRestore:
"clear"
});
378
}
379
380
private setFocusInternal({
381
component,
Callers
15
showOverlay
Method · 0.95
hideOverlay
Method · 0.95
handleInput
Method · 0.95
tui-cell-size-input.test.ts
File · 0.80
image-test.ts
File · 0.80
overlay-non-capturing.test.ts
File · 0.80
chat-simple.ts
File · 0.80
key-tester.ts
File · 0.80
terminal-colors.test.ts
File · 0.80
initMainTui
Method · 0.80
mountEditorReplacement
Method · 0.80
restoreEditor
Method · 0.80
Calls
1
setFocusInternal
Method · 0.95
Tested by
no test coverage detected