Permalink
Browse files

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

  • Loading branch information...
1 parent c13d80d commit 1189b33ed59bc150e169e4279fccc405919f219c @thefiddler thefiddler committed Dec 23, 2013
Showing with 1 addition and 7 deletions.
  1. +1 −7 Source/OpenTK/Platform/MacOS/CarbonGLNative.cs
@@ -379,13 +379,7 @@ private OSStatus ProcessKeyboardEvent(IntPtr inCaller, IntPtr inEvent, EventInfo
{
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:

0 comments on commit 1189b33

Please sign in to comment.