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:

With build 371 and later (including isCOBOL 2008), the default keyboard setting for F10 is:

iscobol.key.f10=exception= 

so the F10 key does not terminate the ACCEPT or change the keyboard focus to the COBOL or System menus. 

If you add the following setting in your isCOBOL configuration file:

iscobol.key.f10=exception=10 

then pressing F10 will terminate the ACCEPT with exception value 10 and will not change the keyboard focus to the COBOL or System menus.



Back to Original Question