Fixed OpenTK/Carbon key repeat behavior to match the other backends

This commit is contained in:
thefiddler 2013-12-23 20:40:27 +01:00
parent c13d80d6d8
commit 1189b33ed5

View file

@ -379,13 +379,7 @@ namespace OpenTK.Platform.MacOS
{ {
case KeyboardEventKind.RawKeyRepeat: case KeyboardEventKind.RawKeyRepeat:
if (InputDriver.Keyboard[0].KeyRepeat) if (InputDriver.Keyboard[0].KeyRepeat)
{ goto case KeyboardEventKind.RawKeyDown;
// Repeat KeyPress events until KeyUp
if (!Char.IsControl(mKeyPressArgs.KeyChar))
{
OnKeyPress(mKeyPressArgs);
}
}
break; break;
case KeyboardEventKind.RawKeyDown: case KeyboardEventKind.RawKeyDown: