How to Add Key Navigation for Front Panel Controls
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
I want to be able to control my VI by using the keyboard. How can I map a key to a front panel control?
To map keys to a front panel control use Key Navigation in the properties window.
Right-click on the control and select Properties, then go to the Key Navigation Tab.
In this example you could use the Insert key to set focus then toggle the button with the Enter Key. You can also directly toggle the button with the escape key.
The snippet below uses Key Navigation to increment and decrement the numeric control and the escape key to toggle the Exit button and stop the VI. There is also an example that uses Key Navigation in the Related Links.
Developer Zone Example: Password Input VI with Key Navigation
LabVIEW 2009 Help: Key Navigation Page (Properties Dialog Box)
KnowledgeBase 4S0FSL6U: Key Navigation Does Not Work for Hidden Controls
KnowledgeBase 1T49F8AX: Key Navigation Is Limited to the Keys Listed in
the Key Navigation Dialog
Report Date: 05/29/2009
Last Updated: 02/10/2010
Document ID: 4XSGMGWA