diff --git a/src/osx/cocoa/glcanvas.mm b/src/osx/cocoa/glcanvas.mm index cc889507e7..de9ff18901 100644 --- a/src/osx/cocoa/glcanvas.mm +++ b/src/osx/cocoa/glcanvas.mm @@ -135,6 +135,11 @@ WXGLPixelFormat WXGLChoosePixelFormat(const int *GLAttrs, return YES; } +- (BOOL) acceptsFirstResponder +{ + return YES; +} + @end bool wxGLCanvas::DoCreate(wxWindow *parent, @@ -154,7 +159,7 @@ bool wxGLCanvas::DoCreate(wxWindow *parent, NSRect r = wxOSXGetFrameForControl( this, pos , size ) ; wxNSCustomOpenGLView* v = [[wxNSCustomOpenGLView alloc] initWithFrame:r]; - wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( this, v, false, true ); + wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( this, v ); SetPeer(c); MacPostControlCreate(pos, size) ; return true;