accelerator_add(Key, SystemKeys, Function) |
The function sets Key (optionally in combination with SystemKeys) as an accelerator key for Function. Pressing this accelerator will invoke Function. |
Input parameters: |
Key | string | One of the following pre-defined strings: RETURN NUMPAD0-NUMPAD9 MULTIPLY ADD SUBTRACT DIVIDE DECIMAL F2-F12 These strings represent the keys on the numerical keypad. Please note that F1 is not available. F1 is reserved for Help. |
SystemKeys | integer | Which system keys that must be pressed together with Key. 0: None. 1: ALT must be pressed. 2: CTRL must be pressed. 4: SHIFT must be pressed. To combine (require ALT and CTRL to be pressed), add the numbers above. |
Function | integer | Specifies the id of the Tribon function to use. See separate chapter for available functions. |
Returned value: |
None. |
Exceptions: |
kcs_ArgumentError | Invalid arguments to the function. |
kcs_KeyError | Invalid Key parameter. |
kcs_SystemKeyError | Invalid SystemKeys parameter. |