[Win] Implemented modifier keys
authorthefiddler <stapostol@gmail.com>
Mon, 17 Feb 2014 22:21:13 +0000 (23:21 +0100)
committerthefiddler <stapostol@gmail.com>
Tue, 25 Feb 2014 00:13:45 +0000 (01:13 +0100)
Source/OpenTK/Platform/Windows/WinGLNative.cs

index 53d498b..9688984 100644 (file)
@@ -511,11 +511,13 @@ namespace OpenTK.Platform.Windows
                 if (pressed)
                 {
                     key_down.Key = key;
+                    key_down.Modifiers = keyboard.GetModifiers();
                     KeyDown(this, key_down);
                 }
                 else
                 {
                     key_up.Key = key;
+                    key_up.Modifiers = keyboard.GetModifiers();
                     KeyUp(this, key_up);
                 }
             }