Editing Command Key Events

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
  1. Open your project in Presentation Designer and select a form in the Project Pane.

  2. In the Properties Pane, click the Events tab.

  3. Select the On Command Key event, and double-click the value field.

    The Event editor appears.

  4. Add one or more actions to the event.


    Select either the default Sendkey event or the default Display Form event to modify it.

    For details about the available actions, see Adding Actions to Events.

    Note The last action in an On Command Key event must be Display Form.
Related Topics
Bullet Adding Events, Overview
Bullet Adding Actions to Events
Bullet Sending AID Keys from Events