Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

feat(tui): add non-capturing overlays with focus control#1916

Open
nicobailon wants to merge 1 commit intobadlogic:mainfrom
nicobailon:feat/non-capturing-overlays
Open

feat(tui): add non-capturing overlays with focus control#1916
nicobailon wants to merge 1 commit intobadlogic:mainfrom
nicobailon:feat/non-capturing-overlays

Conversation

@nicobailon
Copy link
Contributor

Apologies for the delay, this closes #1355.

The core implementation is just +46 lines added to tui.ts (showOverlay, hideOverlay, compositeOverlays). The rest are tests and examples.

Overlays now have a nonCapturing option so they don't steal keyboard focus and you can switch focus between them.

New OverlayHandle methods: focus(), unfocus(), isFocused() to control which overlay receives input and bring it to the front.

Added manual test commands in examples/extensions/overlay-qa-tests.ts (/overlay-passive, /overlay-focus, /overlay-streaming). We could remove overlay-qa-tests.ts after testing manually to reduce bloat, or keep those around for examples.

Screen.Recording.2026-03-06.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tui: Non input-capturing overlay

1 participant