Do not raise KeyPress for control characters

This commit is contained in:
thefiddler 2013-12-25 11:14:30 +01:00
parent 83039f8740
commit ffdf881cea

View file

@ -805,8 +805,11 @@ namespace OpenTK.Platform.X11
{
for (int i = 0; i < status; i++)
{
KPEventArgs.KeyChar = chars[i];
key_press(this, KPEventArgs);
if (!Char.IsControl(chars[i]))
{
KPEventArgs.KeyChar = chars[i];
key_press(this, KPEventArgs);
}
}
}
break;