Listens to keyboard and mouse actions on the tree pane.
Triggers the client action on mouse click and on keyboard enter/space.
Removes triggering the client action upon selection changes. Removes
code that artificially cleared the selection upon any selection change.
This enables using the keyboard for navigating the tree without false triggers.
Up/down/left/right arrows now do as we expect them to do.
Making the keyboard navigation work on the JTree is important for accessibility.
Makes the subtree expansion work on a single click for enable easier use.
Listens to keyboard and mouse actions on the tree pane. Triggers the client action on mouse click and on keyboard enter/space.
Removes triggering the client action upon selection changes. Removes code that artificially cleared the selection upon any selection change. This enables using the keyboard for navigating the tree without false triggers. Up/down/left/right arrows now do as we expect them to do.
Making the keyboard navigation work on the JTree is important for accessibility.
Makes the subtree expansion work on a single click for enable easier use.