From 7ae6858ab5f8d6eed4a8ee3dadd423d83b25170e Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 20 Oct 2009 11:35:35 +0000 Subject: [PATCH] Trap WM_SYSCHAR to avoid generating system beeps on Alt+[Key] combinations. --- Source/OpenTK/Platform/Windows/WinGLNative.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/OpenTK/Platform/Windows/WinGLNative.cs b/Source/OpenTK/Platform/Windows/WinGLNative.cs index ba25740e..4110b6eb 100644 --- a/Source/OpenTK/Platform/Windows/WinGLNative.cs +++ b/Source/OpenTK/Platform/Windows/WinGLNative.cs @@ -431,6 +431,9 @@ namespace OpenTK.Platform.Windows } break; + case WindowMessage.SYSCHAR: + return IntPtr.Zero; + case WindowMessage.KILLFOCUS: keyboard.ClearKeys(); break;