mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #400] #Question: Howto set focus when coming back to a page #292
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#292
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 @shaunenslin on GitHub (Feb 9, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/400
I have 2 pages setup and the idea is to treat them like tabs.
I have a global variable called focusPrimitive, which I set each time I setfocus.
However, when switching between pages, I can't get it to setfocus where I last was on that page. As a result, I cannot do any navigation, since it seems nothing has been set to focus.
See below for the code I am trying to do