mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 11:15:28 +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:
|
case KeyboardEventKind.RawKeyDown:
|
||||||
Keymap.TryGetValue(code, out key);
|
Keymap.TryGetValue(code, out key);
|
||||||
InputDriver.Keyboard[0].SetKey(key, (uint)code, true);
|
InputDriver.Keyboard[0].SetKey(key, (uint)code, true);
|
||||||
|
if (!Char.IsControl(mKeyPressArgs.KeyChar))
|
||||||
|
{
|
||||||
OnKeyPress(mKeyPressArgs);
|
OnKeyPress(mKeyPressArgs);
|
||||||
|
}
|
||||||
return OSStatus.NoError;
|
return OSStatus.NoError;
|
||||||
|
|
||||||
case KeyboardEventKind.RawKeyUp:
|
case KeyboardEventKind.RawKeyUp:
|
||||||
|
|
Loading…
Reference in a new issue