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


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= 



Article ID: 41
Created: August 31, 2009
Last Updated: August 4, 2022
Author: Support KB Author

Online URL: https://support.veryant.com/support/phpkb/article.php?id=41