How can I use the F10 key in my application without it changing the keyboard focus?

Question ID : 41
Created on 2009-08-31 at 5:02 PM
Author : Veryant Support [support@veryant.com]

Online URL : http://support.veryant.com/support/phpkb/question.php?ID=41



Question:

My application uses the F10 key. However, with isCOBOL the F10 key seems to have some other function such as changing the keyboard focus to the System menu or desktop.

Answer:

By default, the F10 key activates the menu bar (if there is one) without interrupting the ACCEPT, and will only interrupt the ACCEPT when there is no system menu bar.
You can change the behavior of the F10 key by setting this variable to false:

   iscobol.key.f10.system=false 
Setting this to false means the F10 key will always interrupt the ACCEPT and generate an exception.

The value of the F10 key returns is 10 unless you set it to a different value using
   iscobol.key.f10=exception= 



Back to Original Question