openlcb / OpenLCB_Java

A git-managed copy of the SVN-based Java prototype implementation of OpenLCB. This implementation operates inside JMRI.
6 stars 9 forks source link

Makes the network tree navigable by keyboard #187

Closed balazsracz closed 3 years ago

balazsracz commented 3 years ago

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.