[Win] Implemented modifier keys
This commit is contained in:
parent
c92aabd807
commit
9ba21d6017
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue