From 18b6722f5439b9f13273bee120c6de5f8502691b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Jul 2019 17:11:18 +0200 Subject: Mac: Give new child views focus on creation --- pugl/pugl_osx.m | 1 + 1 file changed, 1 insertion(+) diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index fb45fe1..5febeb7 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -671,6 +671,7 @@ puglCreateWindow(PuglView* view, const char* title) NSView* pview = (NSView*)view->parent; [pview addSubview:impl->glview]; [impl->glview setHidden:NO]; + [[impl->glview window] makeFirstResponder:impl->glview]; } else { NSString* titleString = [[NSString alloc] initWithBytes:title -- cgit v1.2.1