Key Release Trigger

The Key Release trigger allows you to trigger an action when a key pressed on the users keyboard is released. You can also combine a key with a modifier (i.e. the Ctrl, Shift or Alt keys on the keyboard).

Note:
As well as the normal alphabet and numerical keys, you can use the function and arrow keys. You can also use the Space and Enter keys but please note that the Enter key can be set for use by Text Input objects, so using it on pages where there are input boxes may cause confusion.

There is also a trigger that starts a list of actions when a key is pressed – see Key Press trigger for more information.

Setting up the Key Release trigger:

1. Add the Key Release trigger to your Actions Organiser, as described in Creating and Editing Actions. The Key Press tab will automatically appear when you add the trigger.

2. Use the Any Key option when you want any key on your keyboard to act as the trigger.

Note:
The only exceptions to the any key rule are: the Esc key (which is reserved to exit a publication); and the Window key (which is reserved for other operations).

The Any Key option is often used as an easy method for novice computer users to interact with your publication without them having to know any special keys on their keyboard. It is most commonly used as a quick method to move to other pages in your publication and is usually accompanied by a ‘Press any key to continue:’ message on screen.

3. Use the Specific Key = option when you want to specify the key on the keyboard that the user must press and release to act as the trigger. Press the actual key (or combination of keys) that you want to use as the trigger. The keys you press are shown in the edit box. This will activate the Use Modifiers panel – see next point.

4. Tick the Shift, Ctrl or Alt boxes in the Use Modifiers panel if the user is required to hold down these keys as they press the key you have entered in the Key Pressed= option. To select one or more modifier, tick the checkbox beside the name. To cancel the selection, click again, so that it is no longer ticked.

Note:
In most cases you will ignore the Modifier tab and move straight to step 5 below.

5. Click on the Apply button to save your changes.

6. Click on the Actions tab in the Actions dialog to select an action or actions to add to the trigger.

7. Go to Choosing an Action to list all of the actions you can add to your trigger.

Related Topics:

Introducing the Advanced Triggers

Choosing a Trigger