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
Содержание DREAMWEAVER MX 2004
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...