trigger keyboardSwitch
Interactive trigger that defines the application-wide actions in response to the ^SWITCH_KEY action, such as loading a new keyboard translation table.
Declaration: | trigger
keyboardSwitch
|
Applies to: | Application Shell |
Activation: | Activated by ^SWITCH_KEY. |
Default behavior: | None |
Behavior upon completion: | None |
Description
The keyboardSwitch trigger defines the application-wide actions that should be taken when the user activates the trigger with the ^SWITCH_KEY request.
This trigger is generally used to load a new keyboard translation table (using the $keyboard function), for example to change from the default mode to numeric keypad mode. For example:
trigger keyboardSwitch if ($keyboard = 'vtnum') $keyboard = "VT200" message "Default keyboard in use." else $keyboard = "VTNUM" message "Numeric keyboard in use." endif end; keyboardSwitch
If it is necessary to define actions that should only apply to particular forms, the ProcScript in the keyboardSwitch trigger can include tests on $instancename. Be aware that this can make maintenance more difficult, especially when a form that is explicitly mentioned in a test is replaced by a form with a different name.