Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated

How to Add Key Navigation for Front Panel Controls

Primary Software:
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.

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

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit