Example #1
0
 private void mapControl_GM_OnKeyUp(object sender, IMapControlEvents2_OnKeyUpEvent e)
 {
     if (e.keyCode == (int)Keys.Delete && mapControl_GM.CurrentTool != null &&
         !mapControl_GM.CurrentTool.GetType()
         .FullName.Equals("ESRI.ArcGIS.Controls.ControlsEditingEditToolClass"))
     {
         DataEditCommon.DeleteAllSelection();
     }
 }