[Input] Fixed key modifiers in KeyboardDevice events
This commit is contained in:
parent
d787656328
commit
d03e9d82dc
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue