Adobe 38040334 - Dreamweaver CS3 User Manual page 151

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

If you're changing a menu command, find the appropriate
4
attribute. If you are changing a menu, find the appropriate
either case, do not change the
Save and close menus.xml; then start Dreamweaver again to see your changes.
5
Changing keyboard shortcuts
If the default keyboard shortcuts aren't convenient for you, you can change or remove existing shortcuts or add new
ones. The easiest way to do this is to use the Keyboard Shortcut Editor. (For more information, see Dreamweaver
Help). However, you can also modify keyboard shortcuts directly in menus.xml if you prefer, but it's much easier to
make mistakes entering shortcuts in menus.xml than in the Keyboard Shortcut Editor.
To change a keyboard shortcut:
Quit Dreamweaver.
1
2
Make a backup copy of the menus.xml file.
Open menus.xml in a text editor such as BBEdit, HomeSite, or Wordpad. (Don't open it in Dreamweaver.)
3
4
Look at the Keyboard Shortcut Matrix (available from the Dreamweaver Support Center at
http://www.adobe.com/go/dreamweaver_support) and find a shortcut that is 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.
If you're reassigning a keyboard shortcut, find the menu command that the shortcut is assigned to, and remove
5
the
attribute from that menu command.
key="shortcut"
Find the menu command to assign or reassign the keyboard shortcut.
6
If the menu command already has a keyboard shortcut, find the key attribute on that line. If it doesn't already have
7
a shortcut, add
anywhere between attributes inside the
key=""
8
Between the double quotation marks (") of the
Use a Plus (+) sign between the keys in a key combination. For more information about modifiers, see the
description of the
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.
Note: You can use the same keyboard shortcut for a Windows-only menu command and for a Macintosh-only menu
command.
Write your new shortcut in the appropriate location in the Keyboard Shortcut Matrix.
9
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.
attribute.
id
attribute, enter the new keyboard shortcut.
key
tag in "<menuitem>" on page 138.
tag, and change the value of its
menuitem
tag, and change the value of its
menu
tag.
menuitem
DREAMWEAVER CS3
Extending Dreamweaver
name
attribute. In
name
145

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents