Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I want to catch the Alt key plus an addionally hit key in the MapControl's OnKeyDown. I did already set MapControl's KeyIntercept to esriKeyIntercept.esriKeyInterceptAlt but the event handler doesn't get raised on Alt or Alt + key. It does get hit on other keys. Any suggestions?

_mapControl.KeyIntercept = (int)(esriKeyIntercept.esriKeyInterceptAlt);

Handler:

void _mapControl_OnKeyDown(object sender, IMapControlEvents2_OnKeyDownEvent e)
{
  Trace.WriteLine("hit");
}
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.