Exemplo n.º 1
0
 /// <summary>
 /// Key Up
 /// </summary>
 public void OnKeyUp(KeyEventArgs e)
 {
     if (_currentCmd != null)
     {
         Command.EventResult eRet = _currentCmd.OnKeyUp(e);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Key Down
 /// </summary>
 public void OnKeyDown(KeyEventArgs e)
 {
     if (_currentCmd != null)
     {
         Command.EventResult eRet = _currentCmd.OnKeyDown(e);
         if (eRet.status == Command.EventResultStatus.Unhandled)
         {
             if (e.KeyCode == Keys.Escape)
             {
                 this.CancelCurrentCommand();
             }
         }
     }
 }