Chapter 22
528
<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>” on page 524.
app
The name of the application in which the shortcut is available. Valid values
are
"dreamweaver"
and
"ultradev"
. The default is for the shortcut to be
available in both Dreamweaver and UltraDev.
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.
id
A unique identifier for a shortcut.
name
A name for the command executed by the keyboard shortcut, in the style
of a menu item name. For example, the
name
attribute 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" />
Summary of Contents for 38028779 - Macromedia Dreamweaver - Mac
Page 1: ...macromedia Using Dreamweaver...
Page 148: ...Chapter 4 148...
Page 296: ...Chapter 12 296...
Page 472: ...Chapter 18 472...
Page 512: ...Chapter 21 512...
Page 562: ...Appendix 562...