From 3348fc20e5ebf26089721f39dea39b8f2d2bba38 Mon Sep 17 00:00:00 2001 From: jules Date: Mon, 15 Dec 2008 11:14:24 +0000 Subject: [PATCH] small fix for an obscure win32 keypress problem --- build/win32/platform_specific_code/juce_win32_Windowing.cpp | 5 +++-- juce_amalgamated.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build/win32/platform_specific_code/juce_win32_Windowing.cpp b/build/win32/platform_specific_code/juce_win32_Windowing.cpp index 1297bb7b01..2a612af9ea 100644 --- a/build/win32/platform_specific_code/juce_win32_Windowing.cpp +++ b/build/win32/platform_specific_code/juce_win32_Windowing.cpp @@ -2133,8 +2133,9 @@ private: break; case SC_KEYMENU: - if (sendInputAttemptWhenModalMessage()) - return 0; + // (NB mustn't call sendInputAttemptWhenModalMessage() here because of very + // obscure situations that can arise if a modal loop is started from an alt-key + // keypress). if (hasTitleBar() && h == GetCapture()) ReleaseCapture(); diff --git a/juce_amalgamated.cpp b/juce_amalgamated.cpp index 4d07c6b846..79457f69ce 100644 --- a/juce_amalgamated.cpp +++ b/juce_amalgamated.cpp @@ -243238,8 +243238,9 @@ private: break; case SC_KEYMENU: - if (sendInputAttemptWhenModalMessage()) - return 0; + // (NB mustn't call sendInputAttemptWhenModalMessage() here because of very + // obscure situations that can arise if a modal loop is started from an alt-key + // keypress). if (hasTitleBar() && h == GetCapture()) ReleaseCapture();