Configuring actions / Action attributes list |
The ACCELERATOR is an action attribute defining the primary accelerator key for an action.
Syntax 1 (Dialog action handlers)
ACCELERATOR = "key"
Syntax 2 (ACTION DEFAULTS section in form files)
ACCELERATOR = key
Syntax 3 (Global .4ad action defaults file)
acceleratorName = "key"
The ACCELERATOR attribute defines the keyboard combination that can be pressed by the user to send an action to the program.
Note that in dialog-specific action attributes, the ACCELERATOR must be specified as a string expression.
This attribute applies to the actions defined by the current dialog in the current window. It can be specified as action default attribute in a global .4ad file, in the ACTION DEFAULTS section of form files, or as dialog action attribute.
-- As action handler attribute ON ACTION print ATTRIBUTES(ACCELERATOR="control-p") -- As action default ACTION DEFAULTS ACTION print (ACCELERATOR=control-p) END -- In a global action defaults file <ActionDefault name="print" acceleratorName="control-p" ... />