1.Locate the current Menuset as as explained in Finding keyboard and mouse shortcuts in the configuration. Use the Quick reference of keyboard and mouse shortcuts to find out where, related to the desired context, you have to add a shortcut.
2.Considering context (no open document/listing > Main*, with document/listing > *Designer), create an empty line in the appropriate <InputConfig> section.
3.Do one of the following:
•If adding a shortcut to a script without parameters, use the syntax:
<KeyBinding CommandType="Script" CommandParameter="ToggleShow" Modifiers="ALT" Key="F9"/>
<MouseBinding CommandType="Script" CommandParameter="MouseWheel" Modifiers="CTRL" MouseAction="WheelClick"/>
<MouseBinding CommandType="Script" CommandParameter="EditSelectSentence" Modifiers="Control" MouseAction="LeftClick"/>
•If adding a shortcut to a script with parameters, use the syntax:
<KeyBinding CommandType="ParametersScript" CommandParameter="ObjMove" Param="D,W" Modifiers="CTRL" Key="Down"/>
4.Reload the configuration file in the database as explained in Re-importing configuration file in the database after making changes.
Note
There are no uniqueness control for the shortcuts within the same <InputConfig> section - it's up to you to make sure that the Key/Mouse action and/or Modifiers are not used elsewhere withing the same <InputConfig> section.
For your convenience, the shortcuts in the configuration file are ordered by keys values.
Important
If you add a printable letter key as a shortcut in the <InputConfig> of the Main section, this will prevent you to use that letter when typing text. Add CTRL or ALT modifier to it to avoid problems.
See also