LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
altenbach

Get rid of automatic key navigation assignment

Status: Completed
Available in LabVIEW 2013

The "system OK" button has a predefined key navigation assignment for "Return (set focus on toggle)".

 

I argue that this automatic assignment is not a good idea and can lead to problems. Key navigation should never be automatic, but should be willfully assigned by the programmer when designing the front panel. A small extra step, which makes things predictable!

 

Lets see what happens if we place three OK buttons on the front panel. Can anyone guess which one will have the "Enter" key navigation assigned? (don't cheat!) As it turns out, it's the one we placed last! (Who would have guessed! :o). This also means that if we have a carefully constructed front panel with the enter key already assigned to a dedicated control, and we later add a "system OK" button to the panel, the existing assignment will get lost and transferred to the new OK button without warning. Greedy, greedy button!!!

 

This existing behavior has caused me problems numerous times in the past and I cannot remember a scenario where I wanted that automatic key assignment.

 

Suggestions: no control should have a predefined key navigation assignment. Ever! 

11 Comments
Darren
Proven Zealot
Status changed to: Completed
Available in LabVIEW 2013