From 9a78fd049dc09a96a5d54b6491366a66fdbd7a62 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 16 Mar 2016 14:48:53 +0100 Subject: [PATCH] Fix view not being made first responder --- src/cocoa_window.m | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cocoa_window.m b/src/cocoa_window.m index c7d0a06d..7ca03290 100644 --- a/src/cocoa_window.m +++ b/src/cocoa_window.m @@ -965,6 +965,7 @@ static GLFWbool createWindow(_GLFWwindow* window, [window->ns.view setWantsBestResolutionOpenGLSurface:YES]; #endif /*_GLFW_USE_RETINA*/ + [window->ns.object makeFirstResponder:window->ns.view]; [window->ns.object setTitle:[NSString stringWithUTF8String:wndconfig->title]]; [window->ns.object setDelegate:window->ns.delegate]; [window->ns.object setAcceptsMouseMovedEvents:YES];