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

Various changes to improve the behaviour of kiosk mode for DocumentWindows on win32.

This commit is contained in:
jules 2014-01-27 17:39:21 +00:00
parent f34d1cdb3c
commit 042d9f22fc
7 changed files with 38 additions and 27 deletions

View file

@ -262,7 +262,7 @@ int ModalComponentManager::runEventLoopForCurrentComponent()
if (Component* currentlyModal = getModalComponent (0))
{
WeakReference<Component> prevFocused (Component::getCurrentlyFocusedComponent());
FocusRestorer focusRestorer;
bool finished = false;
attachCallback (currentlyModal, new ReturnValueRetriever (returnValue, finished));
@ -276,9 +276,6 @@ int ModalComponentManager::runEventLoopForCurrentComponent()
}
}
JUCE_CATCH_EXCEPTION
if (prevFocused != nullptr && ! prevFocused->isCurrentlyBlockedByAnotherModalComponent())
prevFocused->grabKeyboardFocus();
}
return returnValue;