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();