From 2db3582466481322018e70a32b6d461c3c2178a5 Mon Sep 17 00:00:00 2001 From: jules Date: Thu, 13 Jun 2013 16:36:27 +0100 Subject: [PATCH] win32: avoid beep on alt-key press. --- modules/juce_gui_basics/native/juce_win32_Windowing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp index 37cfd6e01b..d34295ee5a 100644 --- a/modules/juce_gui_basics/native/juce_win32_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_win32_Windowing.cpp @@ -2356,7 +2356,8 @@ private: if (doAppCommand (lParam)) return TRUE; - break; + case WM_MENUCHAR: // triggered when alt+something is pressed + return MNC_CLOSE << 16; // (avoids making the default system beep) //============================================================================== case WM_SETFOCUS: