The On Command Key event occurs when a user presses any AID key. The event is associated with a form, so that you can control what happens when the end user presses a command key while using a specific form. The event has access to any input the user has entered into the form. For example, if the form requires the user to enter data into a field and send it with an AID key, you can use this event to validate the data entered.
When you are editing an On Command Key event, you will find that some of the actions have additional features. Typically, the Sendkey action gives you a list of command keys from which to choose. When you are working with a Sendkey action in an On Command Key event, you are given the added option, Key User Pressed.
Also, the Add Tests dialog box used by the Decision Branch and Loop actions includes extra options under the Eligible Data list, making them available for use in conditional logic expressions. These include EventData, which captures data elements from the user interaction that triggered the event (such as the command key the user pressed, and the cursor location at the time the key was pressed), and a list of command keys, similar to the Sendkey list, which you can use to remap specific AID keys in your application.
|To edit an On Command Key event|
|Adding Events, Overview|
|Adding Actions to Events|
|Sending AID Keys from Events|