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:
parent
f34d1cdb3c
commit
042d9f22fc
7 changed files with 38 additions and 27 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue