Sets the action to perform on the map when the a specific key is pressed.

Namespace:  ESRI.ADF.UI
 

Syntax

function setKeyAction (
	keycode : [T:J#Sys.UI.Key], 
	onkeydown : Function, 
	onkeydown : Function, 
	cursor : String, 
	continuous : Boolean
)

Parameters

keycode
Type: [T:J#Sys.UI.Key]
Key to map this action to
onkeydown
Type: [T:J#Function]
Method to call when the key is pressed downMethod to call when the key is released.
onkeydown
Type: [T:J#Function]
Method to call when the key is pressed downMethod to call when the key is released.
cursor
Type: [T:J#String]
cursor style applied to map.
continuous
Type: [T:J#Boolean]
When true, this event will fire continuous while the key is pressed down.

See Also