Do not raise KeyPress for control characters
This commit is contained in:
parent
83039f8740
commit
ffdf881cea
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue