don't treat changing focus to popup's child as loosing it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2002-02-17 00:03:08 +00:00
parent 3e58dcb905
commit 36a56c6568

View File

@ -418,8 +418,14 @@ void wxPopupFocusHandler::OnKillFocus(wxFocusEvent& event)
// when we lose focus we always disappear - unless it goes to the popup (in // when we lose focus we always disappear - unless it goes to the popup (in
// which case we don't really lose it) // which case we don't really lose it)
if ( event.GetWindow() != m_popup ) wxWindow *win = event.GetWindow();
m_popup->DismissAndNotify(); while ( win )
{
if ( win == m_popup )
return;
win = win->GetParent();
}
m_popup->DismissAndNotify();
} }
void wxPopupFocusHandler::OnKeyDown(wxKeyEvent& event) void wxPopupFocusHandler::OnKeyDown(wxKeyEvent& event)