]> git.saurik.com Git - wxWidgets.git/commitdiff
simulating focus events, see #13495
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 27 Nov 2012 19:16:21 +0000 (19:16 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 27 Nov 2012 19:16:21 +0000 (19:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm

index 35b33e350f106f81f2d18a41d7268d3c4d9354d1..166388bf5868572d437780f4bfc99a517b142a3d 100644 (file)
@@ -1438,7 +1438,10 @@ void wxWidgetCocoaImpl::controlAction( WXWidget WXUNUSED(slf), void *WXUNUSED(_c
 {
     wxWindow* wxpeer = (wxWindow*) GetWXPeer();
     if ( wxpeer )
+    {
+        wxpeer->OSXSimulateFocusEvents();
         wxpeer->OSXHandleClicked(0);
+    }
 }
 
 void wxWidgetCocoaImpl::controlDoubleAction( WXWidget WXUNUSED(slf), void *WXUNUSED(_cmd), void *WXUNUSED(sender))