Restore proper set and kill focus handling for user pane controls under wxMac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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 ;
|
||||
|
Reference in New Issue
Block a user