Accelerators
Accelerators are handled by the GTK accelerator map.
- All actions are assigned an accelerator path of the
form:
<Actions>/group-name/action-name
- A shortcut is associated with this accelerator path.
- All menu and toolbar items take on this accelerator path.
- The GTK accel map code makes sure that the correct shortcut displays next to the menu item.
This has the following benefits:
- Two user interface elements representing the same action can be activated with the same keyboard shortcut.
- If dynamic shortcut editing is turned on, it will work correctly for EggMenu based menus.