[longomatch] Track key pressed events in gdk windows



commit 05ceaef600e872a05f0f04a201206e1b3fad5fbb
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Aug 4 13:10:06 2014 +0200

    Track key pressed events in gdk windows

 LongoMatch.Drawing.Cairo/WidgetWrapper.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Drawing.Cairo/WidgetWrapper.cs b/LongoMatch.Drawing.Cairo/WidgetWrapper.cs
index 306d7d1..4046149 100644
--- a/LongoMatch.Drawing.Cairo/WidgetWrapper.cs
+++ b/LongoMatch.Drawing.Cairo/WidgetWrapper.cs
@@ -51,6 +51,7 @@ namespace LongoMatch.Drawing.Cairo
                        widget.AddEvents ((int)EventMask.PointerMotionMask);
                        widget.AddEvents ((int)EventMask.ButtonPressMask);
                        widget.AddEvents ((int)EventMask.ButtonReleaseMask);
+                       widget.AddEvents ((int)EventMask.KeyPressMask);
                        widget.ExposeEvent += HandleExposeEvent;
                        widget.ButtonPressEvent += HandleButtonPressEvent;
                        widget.ButtonReleaseEvent += HandleButtonReleaseEvent;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]