<shortcut>
Description
Specifies a keyboard shortcut in the menus.xml file.
Attributes
key, {app}, {platform}, {file}, {arguments}, {command}, id, {name}keyThe key combination that activates the keyboard shortcut. For syntax details, see <menuitem>.appThe name of the application in which the shortcut is available. Not currently used.platformSpecifies 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.fileThe path to a file containing the JavaScript code that Adobe Dreamweaver executes when you use the keyboard shortcut. Thefileattribute overrides thecommandattribute. You must specify eitherfileorcommandfor each shortcut.argumentsProvides arguments for Adobe Dreamweaver to pass to the code in the JavaScript file that you specify in thefileattribute. Enclose arguments in single quotation marks ('), inside the double quotation marks (") used to delimit an attribute's value.commandThe JavaScript code that Adobe Dreamweaver executes when you use the keyboard shortcut. Specify eitherfileorcommandfor each shortcut.idA unique identifier for a shortcut.nameA name for the command executed by the keyboard shortcut, in the style of a menu command name. For example, thenameattribute for the F12 shortcut is "Preview in Primary Browser".
Contents
None (empty tag).
Container
This tag must be contained in a shortcutlist tag.
Example
<shortcut key="Cmd+Shift+Z" file="Menus/MM/Edit_Clipboard.htm"arguments="'redo'" id="DWShortcuts_Edit_Redo" />