
1147
Customizing Dreamweaver
33
Generic shortcuts
Although Dreamweaver now provides a user interface for editing the keyboard shortcuts, sometimes
power-users must go to the source for major modifications—and the source for shortcuts is
menus.
xml
. The menus.xml file is divided into two main sections: <shortcutlist> and <menubar>. The
<shortcutlist> divisions are, as you might suspect, a list of keyboard shortcuts. The <menubar>
areas are concerned with the various menu bars—in the main Document window, in the Site panel
(Windows only), and in the numerous context menus.
<shortcutlist> and <menubar> share sev-
eral characteristics. They both follow the same basic structure:
<shortcutlist id=”shortcutListID” [platform=”win|mac”]>
<shortcut attributeName=”value” attributeName=”value” ... />
<shortcut attributeName=”value” attributeName=”value” ... />
other shortcut items...
</shortcutlist>
<menubar name=”menubarname” id=”menubarID” [platform=”win|mac”]>
<menu name=”menuname” id=”menuID”>
<menuitem attributeName=”value” attributeName=”value” ... />
<menuitem attributeName=”value” attributeName=”value” ... />
other menuitem items...
</menu>
other menu items...
</menubar>
Shortcuts for menu items are primarily defined within the <menubar> code; the <shortcutlist>
is mainly concerned with those shortcuts that do not have a menu item associated with them,
such as moving from one word to anot ...