Fixed OpenTK/Carbon key repeat behavior to match the other backends
authorthefiddler <stapostol@gmail.com>
Mon, 23 Dec 2013 19:40:27 +0000 (20:40 +0100)
committerthefiddler <stapostol@gmail.com>
Mon, 23 Dec 2013 19:40:27 +0000 (20:40 +0100)
Source/OpenTK/Platform/MacOS/CarbonGLNative.cs

index a9cf8f8..c6453f7 100644 (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: