2
0
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:
Chris Miller 2020-04-29 01:18:31 +00:00
parent 089ac467f8
commit 591e235272

View File

@ -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