Make the comment more accurate, and the SetFocus is comment before, this is just restore it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2014-09-23 17:41:39 +00:00
parent f172294263
commit 0947d75f2f

View File

@ -2487,7 +2487,7 @@ void wxComboCtrlBase::DoShowPopup( const wxRect& rect, int WXUNUSED(flags) )
// wxPopupWindow implemenation on this platform is classified as
// perfect, then we should be able to safely set focus to the popup
// control.
// In wxUniv/x11 port, popup window neither generic top-level nor
// In x11 backend, popup window neither generic top-level nor
// perfect native window. So shouldn't be set focus to the popup control
// same in the OnPopupDismiss function.
#if !defined(__WXX11__)
@ -2517,10 +2517,7 @@ void wxComboCtrlBase::OnPopupDismiss(bool generateEvent)
// OnPopupDismisses.
m_popupWinState = Hidden;
#if !defined(__WXX11__)
SetFocus();
#endif
//SetFocus();
m_winPopup->Disable();
// Inform popup control itself