/// <summary> /// Key has been pressed. /// </summary> /// <param name="e">A KeyPressEventArgs that contains the event data.</param> public virtual void KeyPress(KeyPressEventArgs e) { // Use mouse controller as first preference if (KeyController != null) { KeyController.KeyPress(OwningControl, e); } else { // Bubble event up to the parent Parent?.KeyPress(e); } }