[longomatch] Initialize key modifier in the event parsing correctly



commit 09487827fe8fcf04d4f32a3e872b396f38fb369e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Oct 30 17:51:02 2014 +0100

    Initialize key modifier in the event parsing correctly

 LongoMatch.Core/Common/Keyboard.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Keyboard.cs b/LongoMatch.Core/Common/Keyboard.cs
index bd0c3a7..6a24dae 100644
--- a/LongoMatch.Core/Common/Keyboard.cs
+++ b/LongoMatch.Core/Common/Keyboard.cs
@@ -34,7 +34,7 @@ namespace LongoMatch.Core.Common
 
                public static HotKey ParseEvent (Gdk.EventKey evt)
                {
-                       int modifier = -1;
+                       int modifier = 0;
 
                        if (evt.State == Gdk.ModifierType.ShiftMask) {
                                modifier = (int)KeyvalFromName ("Shift_L");


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