[GH-ISSUE #402] Listen to focused inputs #100

Open
opened 2026-03-02 23:44:33 +03:00 by kerem · 2 comments
Owner

Originally created by @vdawg-git on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/402

I built a shortcut system, but it should not be active if a textinput is focused.
Is there a way to react to elements getting focused?

I found renderer.currentFocusedRenderable but no events.

Originally created by @vdawg-git on GitHub (Dec 10, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/402 I built a shortcut system, but it should not be active if a textinput is focused. Is there a way to react to elements getting focused? I found `renderer.currentFocusedRenderable` but no events.
Author
Owner

@kommander commented on GitHub (Dec 11, 2025):

An event when the focus renderable changes could be added to the renderer.

<!-- gh-comment-id:3639503833 --> @kommander commented on GitHub (Dec 11, 2025): An event when the focus renderable changes could be added to the renderer.
Author
Owner

@vdawg-git commented on GitHub (Dec 12, 2025):

Yes, this would make sense. I realized though that simply wrapping the input component would be enough for me.
Dunno, it could make sense for third-party libs which want to be framework independent, but that goes too far into the future

<!-- gh-comment-id:3646766504 --> @vdawg-git commented on GitHub (Dec 12, 2025): Yes, this would make sense. I realized though that simply wrapping the `input` component would be enough for me. Dunno, it could make sense for third-party libs which want to be framework independent, but that goes too far into the future
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#100
No description provided.