1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-20 01:14:20 +00:00

small fix for an obscure win32 keypress problem

This commit is contained in:
jules 2008-12-15 11:14:24 +00:00
parent f94292a728
commit 3348fc20e5
2 changed files with 6 additions and 4 deletions

View file

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

View file

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