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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user