Disabling Function Keys in an Application

Question:
How do I disable function keys in an application?

Answer:
You can disable function keys by using the ON KEY LABEL command. Putting an asterisk (*) after the key name disables the key.

For example, the following command disables the F2 function key:

ON KEY LABEL F2 *

To restore the function key later, just execute the same command without the asterisk.

For example, the following command enables the F2 key:

ON KEY LABEL F2

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist