mirror of
https://github.com/rivo/tview.git
synced 2024-11-12 19:10:28 +00:00
Also call node.selected on node click
This commit is contained in:
parent
089ac467f8
commit
591e235272
@ -756,6 +756,9 @@ func (t *TreeView) MouseHandler() func(action MouseAction, event *tcell.EventMou
|
||||
if t.selected != nil {
|
||||
t.selected(node)
|
||||
}
|
||||
if node.selected != nil {
|
||||
node.selected()
|
||||
}
|
||||
}
|
||||
}
|
||||
consumed = true
|
||||
|
Loading…
Reference in New Issue
Block a user