title: GTK# mouse event in drawing area
body: <p>I have a DrawingArea which I would like to received mouse events.
  From the tutorials I have found that the KeyPressEvent will also catch mouse events.
  However for the following code the handler is never called.</p>
  
  <pre><code>static void Main ()
  {
      Application.Init ();
      Gtk.Window w = new Gtk.Window ("");
  
      DrawingArea a = new CairoGraphic ();
      a.KeyPressEvent += KeyPressHandler;
      w.Add(a);
  
      w.Resize (500, 500);
      w.DeleteEvent += close_window;
      w.ShowAll ();
  
      Application.Run ();
  }
  
  private static void KeyPressHandler(object sender, KeyPressEventArgs args)
  {
      Console.WriteLine("key press event");   
  }
  </code></pre>
  
  <p>I have tried a bunch of things from reading different forums and tutorials including:</p>
  
  <p>Adding a EventBox to the windows and putting the DrawingArea in the event box and subscribing to the KeyPressEvent for the EventBox. (didn't work)</p>
  
  <p>Calling AddEvents((int)Gdk.EventMask.AllEventsMask); on any and all widgets</p>
  
  <p>I did find that subscribing to the Windows KeyPressEvent did give me keyboard events but not mouse click events.</p>
  
  <p>All the relevant pages in the mono docs give me errors so I'm a bit stuck</p>