03-06-2024 03:18 PM
I found an unexpected behavior when navigating a listbox using the arrow keys. Items whose symbols are divider lines, and are thus not selectable, are included in the arrow navigation, but without visual feedback.
This is in contrast to other non-selectable items in the listbox, which are not skipped in keyboard navigation, but are highlighted (differently, with a gray outline) than selected items, so that there is visual feedback.
The preferred behavior for divider lines would be to skip dividers in keyboard navigation.
Thoughts?
03-06-2024 05:32 PM
Does this apply to all styles of listbox? Modern, NXG, Silver, Classic, System?
03-18-2024 12:01 PM - edited 03-18-2024 12:15 PM
It is easy to show that this is the behavior across all types, as shown in the attached VI. Notice it also occurs on multi-column listboxes. In all cases, if you start on item a, the first click activates the divider row without feedback, and the second click shows you on item c. Hard to believe this behavior has existed in LabVIEW for so long.
Is there an instance where keyboard navigation to a divider line would make sense? It does appear that the symbol and value of the divider-line item is not available for programmatic processing, as shown in the example.