Ejemplo n.º 1
0
 /// <summary>
 /// Key has been released.
 /// </summary>
 /// <param name="e">A KeyEventArgs that contains the event data.</param>
 /// <returns>True if capturing input; otherwise false.</returns>
 public virtual bool KeyUp(KeyEventArgs e)
 {
     // Use mouse controller as first preference
     if (KeyController != null)
     {
         return(KeyController.KeyUp(OwningControl, e));
     }
     else
     {
         // Bubble event up to the parent
         if (Parent != null)
         {
             return(Parent.KeyUp(e));
         }
         else
         {
             return(false);
         }
     }
 }