mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 15:25:31 +00:00
Do not generate KeyPress events for non-printable characters
This commit is contained in:
parent
19d9beb6a4
commit
537a2f7b89
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue