mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 15:05:41 +00:00
[X11] Fixed KeyUp event arguments
KeyUp event was incorrectly fired with KeyDownEventArgs instead of KeyUpEventArgs. This is now fixed.
This commit is contained in:
parent
d985362058
commit
2f4161108d
|
@ -866,7 +866,7 @@ namespace OpenTK.Platform.X11
|
|||
KeyUpEventArgs.Key = key;
|
||||
KeyUpEventArgs.ScanCode = (uint)e.KeyEvent.keycode;
|
||||
KeyUpEventArgs.Modifiers = keyboard.GetModifiers();
|
||||
KeyUp(this, KeyDownEventArgs);
|
||||
KeyUp(this, KeyUpEventArgs);
|
||||
}
|
||||
|
||||
if (pressed)
|
||||
|
|
Loading…
Reference in a new issue