コード例 #1
0
 /// <summary>
 /// Perform key press handling.
 /// </summary>
 /// <param name="e">A KeyPressEventArgs that contains the event data.</param>
 public virtual void KeyPress(KeyPressEventArgs e)
 {
     // Tell current view of key event
     if (ActiveView != null)
     {
         ActiveView.KeyPress(e);
     }
     else if (_root != null)
     {
         _root.KeyPress(e);
     }
 }