We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c1ff91 commit 4deee69Copy full SHA for 4deee69
modules/juce_audio_plugin_client/juce_audio_plugin_client_AU_1.mm
@@ -1749,11 +1749,13 @@ bool keyPressed (const KeyPress&) override
1749
1750
auto* view = (NSView*) getWindowHandle();
1751
auto* hostView = [view superview];
1752
- auto* hostWindow = [hostView window];
1753
1754
- [hostWindow makeFirstResponder: hostView];
+ [[hostView window] makeFirstResponder: hostView];
1755
[hostView keyDown: currentEvent];
1756
- [hostWindow makeFirstResponder: view];
+
+ if ((hostView = [view superview]))
1757
+ if (auto* hostWindow = [hostView window])
1758
+ [hostWindow makeFirstResponder: view];
1759
}
1760
1761
0 commit comments