mirror of
https://github.com/rivo/tview.git
synced 2025-04-28 13:48:53 +08: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 {
|
if t.selected != nil {
|
||||||
t.selected(node)
|
t.selected(node)
|
||||||
}
|
}
|
||||||
|
if node.selected != nil {
|
||||||
|
node.selected()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
consumed = true
|
consumed = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user