From 1189b33ed59bc150e169e4279fccc405919f219c Mon Sep 17 00:00:00 2001 From: thefiddler Date: Mon, 23 Dec 2013 20:40:27 +0100 Subject: [PATCH] Fixed OpenTK/Carbon key repeat behavior to match the other backends --- Source/OpenTK/Platform/MacOS/CarbonGLNative.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs index a9cf8f81..c6453f7b 100644 --- a/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs +++ b/Source/OpenTK/Platform/MacOS/CarbonGLNative.cs @@ -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: