mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #571] Switch focus between forms #417
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#417
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tramhao on GitHub (Mar 4, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/571
It's really not that simple.
I have several forms with flex like this:

and my code is:
The problem is, When I switch focus, I can only do in form, not form2. I know that I need to implement SetInputCapture of last item in form, but in my case, the last one is a button, and cannot get a correct reference by casting.
I got error
Some suggestions?
@tramhao commented on GitHub (Mar 5, 2021):
And now I'm using implementation from:
https://github.com/rivo/tview/issues/100
and works fine thus close this issue.