Override, Changing menus and menu commands – Adobe Extending Dreamweaver CS4 User Manual
Page 154
148
EXTENDING DREAMWEAVER CS4
Menus and menu commands
Example
Description
Contains the key combination to temporarily activate the tool. While in another modal tool, the user can press and
hold this key to switch to this tool.
Attributes
{name}, key, id
•
name
A localized version of the action.
•
key
The key combination used to quickly activate the tool. For syntax details, see “
•
id
A unique ID used to reference the action.
Contents
None (empty tag).
Container
This tag must be contained in a
tool
tag.
Example
Changing menus and menu commands
By editing the menus.xml file, you can move menu commands within a menu or from one menu to another, add
separators to or remove them from menus, and move menus within a menu bar or even from one menu bar to another.
You can move items into or out of context menus using the same procedure as for other menus.
For information, see “
Move a menu command
1
Quit Dreamweaver.
2
Make a backup copy of the menus.xml file.
3
Open menus.xml in a text editor such as BBEdit, Macromedia® HomeSite,® or Wordpad. (Don’t open it in
Dreamweaver.)
4
Cut an entire
menuitem
tag, from the <
menuitem
at the beginning to the
/>
at the end.
5
Place the insertion point at the new location for the menu command. (Make sure it’s between a
menu
tag and the
corresponding
/menu
tag.)
6
Paste the menu command into its new location.