]> git.saurik.com Git - wxWidgets.git/commitdiff
Restore proper set and kill focus handling for user pane controls under wxMac.
authorKevin Ollivier <kevino@theolliviers.com>
Tue, 11 May 2004 05:26:24 +0000 (05:26 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Tue, 11 May 2004 05:26:24 +0000 (05:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index b5f98056e438d291f4840ca7011ec6ab2f26e365..78f8bc0f3236a6b1b363adf5e28579379079bd0e 100644 (file)
@@ -210,6 +210,8 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
                     wxFocusEvent event(wxEVT_KILL_FOCUS, thisWindow->GetId());
                     event.SetEventObject(thisWindow);
                     thisWindow->GetEventHandler()->ProcessEvent(event) ;
+                    if (thisWindow->MacIsUserPane())
+                        result = noErr;
                 }
                 else
                 {
@@ -227,6 +229,8 @@ static pascal OSStatus wxMacWindowControlEventHandler( EventHandlerCallRef handl
                     wxFocusEvent event(wxEVT_SET_FOCUS, thisWindow->GetId());
                     event.SetEventObject(thisWindow);
                     thisWindow->GetEventHandler()->ProcessEvent(event) ;
+                    if (thisWindow->MacIsUserPane())
+                        result = noErr;
                 }
             }
             break ;