public void OnKeyDown(int keyCode, int shift) { if (keyCode == (int)Keys.Delete) { try { ICommand m_delFeatCom = new DelFeatureCommandClass(); m_delFeatCom.OnCreate(m_hookHelper.Hook); m_delFeatCom.OnClick(); } catch (Exception ex) { } } if (keyCode == (int)Keys.Escape) { m_hookHelper.FocusMap.ClearSelection(); m_hookHelper.ActiveView.Refresh(); } }
public void OnKeyDown(int keyCode, int shift) { if (keyCode == (int)Keys.Delete) { try { ICommand m_delFeatCom = new DelFeatureCommandClass(); m_delFeatCom.OnCreate(m_hookHelper.Hook); m_delFeatCom.OnClick(); } catch (Exception ex) { } } if (keyCode == (int)Keys.Escape) { ICommand m_SelTool = new SelectFeatureToolClass(); m_SelTool.OnCreate(m_hookHelper.Hook); m_SelTool.OnClick(); } }