fix(tui): keep focused overlays interactive after UI

Preserve a focused visible overlay as the input owner across extension custom UI replacement, while letting the replacement receive and close its own input before focus is restored. Fixes #5129.
This commit is contained in:
Nico Bailon
2026-05-29 00:18:57 -07:00
parent 3911d6f5cd
commit 5d9b28ee43
4 changed files with 397 additions and 18 deletions

View File

@@ -119,6 +119,10 @@ handle.focus(); // Focus and bring to visual front
handle.unfocus(); // Release focus to previous target
handle.isFocused(); // Check if overlay has focus
// A focused visible overlay keeps keyboard input until hidden or explicitly unfocused.
// If you want a base component to receive input while the overlay remains visible,
// call handle.unfocus() before focusing the base component.
// Hide topmost overlay
tui.hideOverlay();