User Guide
150 Chapter 8: Menus and Menu Commands
<shortcutlist>
Description
Specifies a shortcut list in the menus.xml file.
Attributes
{app}, id, {platform}
• app The name of the application in which the shortcut list is available. Not currently used.
• id The ID for the shortcut list. It should be the same as the menu ID for the menu bar
(or context menu) in Dreamweaver that the shortcuts are associated with. Valid values are
"DWMainWindow", "DWMainSite", "DWTimelineContext", and "DWHTMLContext".
• platform Indicates that the shortcut list should appear only on the given platform. Valid
values are
"win" and "mac".
Contents
This tag can contain one or more shortcut tags. It can also contain one or more comment tags
(which use the same syntax as HTML comment tags).
Container
None.
Example
<shortcutlist id="DWMainWindow">
<!-- shortcut and comment tags here -->
</shortcutlist>
<shortcut>
Description
Specifies a keyboard shortcut in the menus.xml file.
Attributes
key, {app}, {platform}, {file}, {arguments}, {command}, id, {name}
• key The key combination that activates the keyboard shortcut. For syntax details, see
<menuitem>.
• app The name of the application in which the shortcut is available. Not currently used.
• platform Specifies that the shortcut works only on the indicated platform. Valid values are
"win" and "mac". If you do not specify this attribute, the shortcut works on both platforms.
• file The path to a file containing the JavaScript code that Dreamweaver executes when
you use the keyboard shortcut. The file attribute overrides the command attribute. You must
specify either
file or command for each shortcut.
• arguments Provides arguments for Dreamweaver to pass to the code in the JavaScript file
that you specify in the file attribute. Enclose arguments in single quotation marks ('),
inside the double quotation marks (") used to delimit an attribute’s value.
• command The JavaScript code that Dreamweaver executes when you use the keyboard
shortcut. Specify either file or command for each shortcut.