Misc fixes, now menus are almost working on MicroWindows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -337,7 +337,11 @@ void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event)
|
||||
void wxPopupFocusHandler::OnKillFocus(wxFocusEvent& event)
|
||||
{
|
||||
// when we lose focus we always disappear
|
||||
m_popup->DismissAndNotify();
|
||||
|
||||
// But if m_popup was about to get the focus,
|
||||
// don't disappear.
|
||||
if (event.GetWindow() != m_popup)
|
||||
m_popup->DismissAndNotify();
|
||||
}
|
||||
|
||||
#endif // wxUSE_POPUPWIN
|
||||
|
||||
Reference in New Issue
Block a user