User Guide
170 Chapter 12: Workspace
dreamweaver.mapKeyCodeToChar()
Availability
Dreamweaver 4.
Description
Takes a key code as retrieved from the event object’s keyCode field and translates it to a character.
You should check whether the key code is a special key, such as HOME, PGUP, and so on. If the
key code is not a special key, this method can be used to translate it to a character code that is
suitable for display to the user.
Arguments
keyCode
• The keyCode argument is the key code to translate to a character.
Returns
Nothing.
Menu functions
Menu functions handle optimizing and reloading the menus in Dreamweaver. The
dreamweaver.getMenuNeedsUpdating() function and the
dreamweaver.notifyMenuUpdated() function are designed specifically to prevent unnecessary
update routines from running on the dynamic menus that are built into Dreamweaver. See
dreamweaver.getMenuNeedsUpdating() and dreamweaver.notifyMenuUpdated() for more
information.
dreamweaver.getMenuNeedsUpdating()
Availability
Dreamweaver 3.
Description
Checks whether the specified menu needs to be updated.
Arguments
menuId
• The menuId argument is a string that contains the value of the id attribute for the menu item,
as specified in the menus.xml file.
Returns
A Boolean value that indicates whether the menu needs to be updated. This function returns
false only if dreamweaver.notifyMenuUpdated() has been called with this menuId, and the
return value of
menuListFunction has not changed. For more information, see
“dreamweaver.notifyMenuUpdated()” on page 171.
000_DW_API_Print.book Page 170 Wednesday, August 20, 2003 9:14 AM