Fix pressing alt + [numpad numbers] raising OnKeyPress with '?'

This commit is contained in:
UnknownShadow200 2018-01-18 22:34:13 +11:00 committed by Jarl Gullberg
parent f505808c8b
commit f17fa4bc2d

View file

@ -354,7 +354,7 @@ namespace OpenTK.Platform.Windows
/// To get extended error information, call GetLastError. /// To get extended error information, call GetLastError.
/// </returns> /// </returns>
[System.Security.SuppressUnmanagedCodeSecurity] [System.Security.SuppressUnmanagedCodeSecurity]
[DllImport("User32.dll"), CLSCompliant(false)] [DllImport("User32.dll", CharSet = CharSet.Auto), CLSCompliant(false)]
//[return: MarshalAs(UnmanagedType.Bool)] //[return: MarshalAs(UnmanagedType.Bool)]
internal static extern INT GetMessage(ref MSG msg, internal static extern INT GetMessage(ref MSG msg,
IntPtr windowHandle, int messageFilterMin, int messageFilterMax); IntPtr windowHandle, int messageFilterMin, int messageFilterMax);
@ -388,11 +388,11 @@ namespace OpenTK.Platform.Windows
internal static extern void PostQuitMessage(int exitCode); internal static extern void PostQuitMessage(int exitCode);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("User32.dll"), CLSCompliant(false)] [DllImport("User32.dll", CharSet = CharSet.Auto), CLSCompliant(false)]
internal static extern LRESULT DispatchMessage(ref MSG msg); internal static extern LRESULT DispatchMessage(ref MSG msg);
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
[DllImport("User32.dll"), CLSCompliant(false)] [DllImport("User32.dll", CharSet = CharSet.Auto), CLSCompliant(false)]
internal static extern BOOL TranslateMessage(ref MSG lpMsg); internal static extern BOOL TranslateMessage(ref MSG lpMsg);
/// <summary> /// <summary>