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

Adds keyboard navigation between segments #192

Closed balazsracz closed 2 years ago

balazsracz commented 2 years ago

This PR adds keyboard bindings for F6 and Shift+F6 with the implementation that pressing these buttons navigates up and down between the CDI segments.

This is an accessibility feature for users who are not able to use a mouse to quickly navigate between segments.

dpharris commented 2 years ago

I got this to compile and run ok. The F6 and shift-F6 do cycle through the segments, including the LINE segment inside the Segment Port I/O on the Tower-LCC. I do find it hard to follow as the highlighting is minimal in OSX and Metal skins. The formatting is a little screwed up, in that, in Metal, the Line segment title is squished.

Screen Shot 2022-02-13 at 12 52 01 PM

I did discover that 'space bar' opened and closed segments.