<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, idnameA localized version of the action.keyThe key combination used to execute the action. For syntax details, see <menuitem>.commandThe JavaScript statements to execute. This attribute has the same format as thecommandattribute of <shortcut>.idA unique ID used to reference the action.
Contents
None (empty tag).
Container
This tag must be contained in a tool tag.
Example
<action name="Set magnification to 50%" key="5" command="dw.activeViewScale = 0.50" id ="DWTools_Zoom_50" />