diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index b5f98056e4..78f8bc0f32 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -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 ;