mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #394] SetDoneFunc in TreeView and List #289
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#289
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 @agruenberg on GitHub (Jan 23, 2020).
Original GitHub issue: https://github.com/rivo/tview/issues/394
Hi, first of all: Thank you for your great work and your effort.
I have a List next to a TreeView and would like to switch with the Tab key. I don't know if I missed something, but it seems, that there is no SetDoneFunc in the TreeView and the SetDoneFunc in the List reacts only by pressing the Esc Key.
Any suggestions how to implement the desired behavior?
Thank you

@tslocum commented on GitHub (Jan 24, 2020):
Hey @agruenberg, you're looking for TreeNode.SetSelectedFunc and TreeView.SetSelectedFunc
@agruenberg commented on GitHub (Jan 24, 2020):
@tslocum thank you, but SetSelectedFunc is called by hitting enter. I'm searching for a handlerFunc where I can evaluate, which key was pressed. Usually you navigate with the tab key, therefore my question.
@rivo commented on GitHub (Jan 25, 2020):
Yeah, that one was missing.
Actually, introducing this, I had to remove Tab/Backtab navigation for the
TreeView. Since this is just a minor change, I think that's ok. (And it's more in line with other primitives.)@agruenberg commented on GitHub (Jan 25, 2020):
@rivo great! Thank you very much!