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:
parent
99786cf7fd
commit
e4d10979ae
1 changed files with 2 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue