mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #424] Question about input handling #308
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#308
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 @holiman on GitHub (Apr 2, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/424
In the code below, I've 'mashed' together the form-example and the flex-example, so I have a flex primitive showing some empty boxes and some forms.
I'm wondering about the "Correct Way" to manage inputs. From reading the docs, I had expected that in the example code below, the flex view would shift focus betwen the children when the user pressed
ghjkl(I've tried the same example using grid): https://github.com/rivo/tview/blob/master/grid.go#L272 . But in the example code, the UI does not react to any key-presses (except ctrl-c), and the focus is not shifted among the components.Could you please point me in the right direction for how to get basic grix/flex navigation between components to work?
@holiman commented on GitHub (Apr 2, 2020):
Ah, never mind this. I just found that this was answered a couple of days ago already: https://github.com/rivo/tview/issues/421 . That same trick seems to work pretty well.
I guess this ticket can be closed.