mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 11:35:39 +00:00
Fixed OpenTK/Carbon key repeat behavior to match the other backends
This commit is contained in:
parent
c13d80d6d8
commit
1189b33ed5
|
@ -379,13 +379,7 @@ namespace OpenTK.Platform.MacOS
|
|||
{
|
||||
case KeyboardEventKind.RawKeyRepeat:
|
||||
if (InputDriver.Keyboard[0].KeyRepeat)
|
||||
{
|
||||
// Repeat KeyPress events until KeyUp
|
||||
if (!Char.IsControl(mKeyPressArgs.KeyChar))
|
||||
{
|
||||
OnKeyPress(mKeyPressArgs);
|
||||
}
|
||||
}
|
||||
goto case KeyboardEventKind.RawKeyDown;
|
||||
break;
|
||||
|
||||
case KeyboardEventKind.RawKeyDown:
|
||||
|
|
Loading…
Reference in a new issue