
Changing menus and menu commands 193
3. Open menus.xml in a text editor such as BBEdit, HomeSite, or Wordpad. (Don’t open it
in Dreamweaver.)
4. Look at the Keyboard Shortcut Matrix (available from the Dreamweaver Support Center)
and find a shortcut that’s not being used or one that you want to reassign.
If you reassign a keyboard shortcut, change it on a printed copy of the matrix for
future reference.
5. If you’re reassigning a keyboard shortcut, find the menu command that the shortcut is
assigned to, and remove the
key="shortcut" attribute from that menu command.
6. Find the menu command to assign or reassign the keyboard shortcut.
7. If the menu command already has a keyboard shortcut, find the key attribute on that line.
If it doesn’t already have a shortcut, add
key="" anywhere between attributes inside the
menuitem tag.
8. Between the double quotation marks (") of the key attribute, enter the new
keyboard shortcut.
Use a Plus (+) sign between the keys in a key combination. For more information about
modifiers, see the description of the
menuitem tag in <menuitem>.
If the keyboard shortcut is in use elsewhere and you didn’t remove its other use, the
shortcut applies only to the first menu command that uses it in menus.xml.
9. Write your new shortcut in the appropriate location in the Keyboard Shortcut Matrix.
Modifying pop-up menus and context menus
Dreamweaver provides pop-up menus and context menus in many of its panels and dialog
boxes. Some context menus are defined in the menus.xml file; others are defined in other
XML files. You can add, remove, or modify items in those menus, although in most cases it’s
better to write an extension to make such changes.
The following pop-up menus and context menus in Dreamweaver are specified in XML files,
using the same tags as menus.xml:
■ Data sources (listed in the Plus (+) pop-up menu on the Bindings panel) are specified in
DataSources.xml files, in subfolders of the DataSources folder.
■ Server behaviors (listed in the Plus (+) pop-up menu on the Server Behaviors panel) are
specified in ServerBehaviors.xml files, in subfolders of the ServerBehaviors folder.
■ Server formats (listed in the Plus (+) pop-up menu in the Edit Format List dialog box) are
specified in ServerFormats.xml files, in subfolders of the ServerFormats folder.
NOTE
You can use the same keyboard shortcut for a Windows-only menu command and
for a Macintosh-only menu command.
Comentarios a estos manuales