Accelerator Keys for Menu Items and Toolbar Buttons

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
Site Admin
Posts: 2461
Joined: Fri Aug 13, 2004 5:10 pm

Accelerator Keys for Menu Items and Toolbar Buttons

Post by jussij »

The Zeus menu does not lists an accelerator key for all menu items, but this does not mean some of the menu items do not have accelerator keys.

If fact the opposite is true. Because all toolbar buttons and menu items map directly to keyboard functions, the keyboard remapping feature means it is possible to assign any accelerator key to any menu item or toolbar button.

This is done using the Options, Editor Options menu and in the Keyboard Mapping section editing the currently active keyboard mapping.

The tricky part is knowing which of the many hundreds of keyboard functions map to which toolbar button or menu item.

Luckily there is a simple way to find the keyboard function. Consider the case where an accelerator is required for the Toolbar, Copy button and the Workspace, Source Control, Show History menu item.

To determine the names of these keyboard functions just record a simple macro script as follows:
  1. Macros, Record Start Stop menu
  2. Click on the Toolbar Copy button
  3. Click on the Workspace, Source Control, Show History menu
  4. Macros, Record Start Stop menu
  5. Macros, Veiw Source menu
This will result in the following macro code being displayed:

Code: Select all

function key_macro()

key_macro() -- run the macro
A quick inspection of the macro script reveals the two keyboard functions that need to be remapped are:

Code: Select all

Post Reply