Browse Source

Window focus fix for OSX app builds.

tags/2021-05-28
jules 11 years ago
parent
commit
a0bcb86e08
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 3
- 1
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -1136,7 +1136,9 @@ public:
bool isFocused() const override
{
return this == currentlyFocusedPeer;
return (isSharedWindow || ! JUCEApplication::isStandaloneApp())
? this == currentlyFocusedPeer
: [window isKeyWindow];
}
void grabFocus() override


Loading…
Cancel
Save