[Input] Fixed key modifiers in KeyboardDevice events

This commit is contained in:
thefiddler 2014-04-27 22:27:18 +02:00
parent d787656328
commit d03e9d82dc

View file

@ -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);
}
}