Select to view content in your preferred language

Disable/override shortcut keys

798
1
09-09-2010 12:40 PM
MattNicol
Regular Contributor
Hello,

I would like to disable the shortcut keys for my map in Silverlight.  Specifically, I would like to either override or disable the + and - keys for zooming.

Handling the map's KeyDown event lets me add to the functionality associated with the keys, but the default zooming behavior remains.  Setting the "Handled" property on the event has no effect either.

Is there a way to accomplish what I'm trying to do?
0 Kudos
1 Reply
MattNicol
Regular Contributor
I was able to arrive at the functionality I needed by a combination of handling the map's KeyDown event and setting the minimum/maximum resolution for the map.

There still seems like there should be a way directly change the behavior of the default shortcut keys though!
0 Kudos