1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

macOS: Fixed an NSWindow focus bug introduced in 8ce79e2

This commit is contained in:
ed 2020-02-07 16:20:25 +00:00
parent 99786cf7fd
commit e4d10979ae

View file

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