Beispiel #1
0
 /// <summary>
 /// Key Up
 /// </summary>
 public void OnKeyUp(KeyEventArgs e)
 {
     if (_currentCmd != null)
     {
         Command.EventResult eRet = _currentCmd.OnKeyUp(e);
     }
 }
Beispiel #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();
             }
         }
     }
 }