I need to change the behavior when I double-click on a node in tree view.
When a user double-clicks on any node in the tree, that element is added to a list.
Whatever the state of the node is before the double-click I want that to remain the same after the double-click. So if the node is expanded I want it to stay expanded and if the node is collapsed I want it to stay collapsed.
How do I do this?
Currently my code adds the element to the list but the state of the node changes which is a bit confusing to the user.