Example
<shortcut key="Cmd+Shift+Z" file="Menus/MM/Edit_Clipboard.htm"
arguments="'redo'" id="DWShortcuts_Edit_Redo" />
<tool>
Description
Represents one tool; it contains all the shortcuts for the tool as subtags in the menus.xml file.
Attributes
{name}, id
•
A localized version of the tool name.
name
•
The internal tool identifier that identifies the tool to which the shortcuts apply.
id
Contents
This tag can contain one or more
Container
This tag must be contained in a
Example
<tool name="Hand tool" id="com.Macromedia.dreamweaver.tools.hand">
<!-- tool tags here -->
</tool>
<action>
Description
Contains the key combination and JavaScript to execute when the tool is active and the key combination is pressed.
Attributes
{name}, key, command, id
•
A localized version of the action.
name
•
The key combination used to execute the action. For syntax details, see "<menuitem>" on page 138.
key
•
The JavaScript statements to execute. This attribute has the same format as the
command
"<shortcut>" on page 141.
•
A unique ID used to reference the action.
id
Contents
None (empty tag).
Container
This tag must be contained in a
Example
<action name="Set magnification to 50%" key="5" command="dw.activeViewScale = 0.50" id
="DWTools_Zoom_50" />
,
, or
activate
override
tag.
menu
tag.
tool
tags.
action
DREAMWEAVER CS3
Extending Dreamweaver
attribute of
command
142