From d03e9d82dc12755ae08d9cad73b9f609106d36d7 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Sun, 27 Apr 2014 22:27:18 +0200 Subject: [PATCH] [Input] Fixed key modifiers in KeyboardDevice events --- Source/OpenTK/Input/KeyboardDevice.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/OpenTK/Input/KeyboardDevice.cs b/Source/OpenTK/Input/KeyboardDevice.cs index cc7d5319..9544f420 100644 --- a/Source/OpenTK/Input/KeyboardDevice.cs +++ b/Source/OpenTK/Input/KeyboardDevice.cs @@ -211,12 +211,14 @@ namespace OpenTK.Input { args.Key = key; args.ScanCode = scancode; + args.Modifiers = GetModifiers(); KeyDown(this, args); } else if (!state && KeyUp != null) { args.Key = key; args.ScanCode = scancode; + args.Modifiers = GetModifiers(); KeyUp(this, args); } }