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:
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: