Do not generate KeyPress events for non-printable characters

This commit is contained in:
Stefanos A 2013-12-09 23:43:36 +01:00
parent 19d9beb6a4
commit 537a2f7b89

View file

@ -383,7 +383,10 @@ namespace OpenTK.Platform.MacOS
case KeyboardEventKind.RawKeyDown:
Keymap.TryGetValue(code, out key);
InputDriver.Keyboard[0].SetKey(key, (uint)code, true);
if (!Char.IsControl(mKeyPressArgs.KeyChar))
{
OnKeyPress(mKeyPressArgs);
}
return OSStatus.NoError;
case KeyboardEventKind.RawKeyUp: