 MinerHokieRamp
		
			MinerHokieRamp
		
		
		
		
		
		
		
		
	
			02-24-2016 09:58 PM
I have some code with an event structure. One event is value change of the QUIT button. In that event case, there's a 2-button dialog that gives the operator a chance to return or to quit.
To improve human factors for this application, I'd like to allow either dialog option via the keyboard, i.e., without a mouse.
The return key generates True out of the dialog. Is there a keyboard shortcut for the False case or any way to add code to implement a shortcut?
Solved! Go to Solution.
 mikeporter
		
			mikeporter
		
		
		 
		
		
		
		
		
	
			02-25-2016 01:06 AM
 
					
				
		
 tst
		
			tst
		
		
		 
		
		
		
		
		
	
			02-25-2016 01:24 AM - edited 02-25-2016 01:25 AM
The common keyboard shortcut for "cancel" is the Esc key, and it does work with the 2BD. Note that techincally it doesn't trigger the F button, but cancels out of the dialog (similar to if you press the X button or Alt-F4), but the effect is that the output will be F, regardless of what you name the button.
02-25-2016 08:46 AM
@tst wrote:The common keyboard shortcut for "cancel" is the Esc key, and it does work with the 2BD. Note that techincally it doesn't trigger the F button, but cancels out of the dialog (similar to if you press the X button or Alt-F4), but the effect is that the output will be F, regardless of what you name the button.
Thanks. That will help.
 RavensFan
		
			RavensFan
		
		
		 
		
		
		
		
		
	
			02-25-2016 09:07 AM
Your thank you message should not be marked as the solution. Tst's message was the solution.
To give him proper credit, and for future people reading your message thread to find the solution, I moved the solution marker from your message to Tst's.
02-25-2016 09:40 AM
Thanks.