]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/window.mm
No changes, just move wxTreeCtrlBase ctor to the source file.
[wxWidgets.git] / src / osx / cocoa / window.mm
index 0bf187240188e2410ee8a873c8b3a9666ad63359..84f694dd02d076e608a1e1db6f75e6c2816fbb9e 100644 (file)
@@ -2305,9 +2305,8 @@ bool wxWidgetCocoaImpl::DoHandleKeyEvent(NSEvent *event)
     // changed by SetupKeyEvent() so it can be wxEVT_KEY_UP too by now).
     if ( wxevent.GetEventType() == wxEVT_KEY_DOWN )
     {
-        wxKeyEvent eventHook(wxevent);
-        eventHook.SetEventType(wxEVT_CHAR_HOOK);
-        if ( wxGetTopLevelParent(GetWXPeer())->OSXHandleKeyEvent(eventHook) )
+        wxKeyEvent eventHook(wxEVT_CHAR_HOOK, wxevent);
+        if ( GetWXPeer()->OSXHandleKeyEvent(eventHook) )
             return true;
     }