Skip to content

Commit

Permalink
Fixed OpenTK/Carbon key repeat behavior to match the other backends
Browse files Browse the repository at this point in the history
  • Loading branch information
thefiddler committed Dec 23, 2013
1 parent c13d80d commit 1189b33
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Source/OpenTK/Platform/MacOS/CarbonGLNative.cs
Expand Up @@ -379,13 +379,7 @@ private OSStatus ProcessKeyboardEvent(IntPtr inCaller, IntPtr inEvent, EventInfo
{ {
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:
Expand Down

0 comments on commit 1189b33

Please sign in to comment.