moveHomeEvent moves the selection up to top of the tree, using given select mode (from keyboard modifiers) and emits select event for newly selected item
(selMode events.SelectModes)
| 1041 | // using given select mode (from keyboard modifiers) |
| 1042 | // and emits select event for newly selected item |
| 1043 | func (tr *Tree) moveHomeEvent(selMode events.SelectModes) *Tree { |
| 1044 | tr.root.selectUpdate(selMode) |
| 1045 | tr.root.SetFocus() |
| 1046 | tr.root.ScrollToThis() |
| 1047 | tr.root.sendSelectEvent() |
| 1048 | return tr.root |
| 1049 | } |
| 1050 | |
| 1051 | // moveEndEvent moves the selection to the very last node in the tree, |
| 1052 | // using given select mode (from keyboard modifiers) |
no test coverage detected