[GH-ISSUE #589] Unable to SetFocus on textView after calling SetText and SwitchToPage #430

Closed
opened 2026-03-04 01:04:55 +03:00 by kerem · 1 comment
Owner

Originally created by @irevenko on GitHub (Apr 12, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/589

I have a page that consists of single textView
And when i call SetText method and then switch to this page the focus disappears also i can't either set it manually

textView.SetText("123")
p.SwitchToPage("info")
app.SetFocus(textView)
Originally created by @irevenko on GitHub (Apr 12, 2021). Original GitHub issue: https://github.com/rivo/tview/issues/589 I have a page that consists of single ```textView``` And when i call ```SetText``` method and then switch to this page the focus disappears also i can't either set it manually ```go textView.SetText("123") p.SwitchToPage("info") app.SetFocus(textView) ```
kerem closed this issue 2026-03-04 01:04:55 +03:00
Author
Owner

@irevenko commented on GitHub (Apr 12, 2021):

i just move event.Key to global flex, not table and it worked

<!-- gh-comment-id:817781019 --> @irevenko commented on GitHub (Apr 12, 2021): i just move ```event.Key``` to global flex, not table and it worked
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/tview#430
No description provided.