beautypg.com

Dom.startofline(), Dreamweaver.mapkeycodetochar(), Menu functions – Adobe Dreamweaver API Reference CS5 User Manual

Page 144

background image

139

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

dom.startOfLine()

Availability
Dreamweaver 3.

Description
Moves the insertion point to the beginning of the line.

Arguments
{bShiftIsDown}

The bShiftIsDown argument, which is optional, is a Boolean value that indicates whether to extend the selection. If
the argument is omitted, the default is

false

.

Returns
Nothing.

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
Returns the character code if mapping was successful. Returns 0 otherwise.

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()

” on page 140 and “

dreamweaver.notifyMenuUpdated()

on page 140 for more information.