How can I use the F10 key in my application without it changing the keyboard focus?
Estimated Reading Time: 1 MinutesQuestion:
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=falseSetting 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=