Allows the setting and querying of a shortcut key associated with a menu item.
Scope: File
Syntax
query accelerator
set accelerator.Name Key
Options
Name |
Either the name for a defined Editor menu item, or a numeric value for a user-added item. The numeric value can be obtained using the query actionbarid command. |
Key |
A key name. Any of the key name formats valid for the action parameter are valid. |
Description
The accelerator parameter associates a function key with a menu item. This attribute can also be set for menu items you have created with the set actionbar command.
Example
To set the accelerator for the Save menu item to F2, type:
set accelerator.lp_save F2
For a list of predefined Editor names, see the menuactive Parameter.
API Return Code
-2 |
Invalid parameter. |
![]()
action Parameter
menuactive Parameter
