Export (0) Print
Expand All

VEMap.onkeydown Event

You are not viewing the latest version of the AJAX control. Bing Maps AJAX V7 is the recommended JavaScript control for Bing Maps. If you need this documentation, it is available in as a CHM or PDF download.

Occurs when a key is pressed (but before it is released). This is not supported in 3D mode.


VEMap.AttachEvent("onkeydown, function_name);

A MapEvent object, which has the following properties:

Property Description

altKey

A Boolean object representing whether the ALT key was held when the key was pressed.

ctrlKey

A Boolean object representing whether the CTRL key was held when the key was pressed.

eventName

A String object representing the type of event that occurred.

keyCode

The key code of the key that has been pressed.

mapStyle

The current map style

sceneID

If the map style is set to bird's eye (oblique), the unique identifier of the current bird's eye scene.

sceneOrientation

If the map style is set to bird's eye (oblique), the orientation of the current bird's eye scene.

shiftKey

A Boolean object representing whether the shift key was held when the key was pressed.

zoomLevel

The current zoom level of the map.

Show:
© 2014 Microsoft