Browse Source

macOS: Fixed an NSWindow focus bug introduced in 8ce79e2

tags/2021-05-28
ed 5 years ago
parent
commit
e4d10979ae
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm

+ 2
- 8
modules/juce_gui_basics/native/juce_mac_NSViewComponentPeer.mm View File

@@ -1887,15 +1887,9 @@ private:
static BOOL becomeFirstResponder (id self, SEL) static BOOL becomeFirstResponder (id self, SEL)
{ {
if (auto* owner = getOwner (self)) if (auto* owner = getOwner (self))
{
if (owner->canBecomeKeyWindow())
{
owner->viewFocusGain();
return YES;
}
}
owner->viewFocusGain();
return NO;
return YES;
} }
static BOOL resignFirstResponder (id self, SEL) static BOOL resignFirstResponder (id self, SEL)


Loading…
Cancel
Save