Fixed a bug on Mac whereby popup window disappeared as soon as the button was clicked (text control getting focus)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1729,13 +1729,9 @@ void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
|
|||||||
{
|
{
|
||||||
wxWindow* tc = GetTextCtrl();
|
wxWindow* tc = GetTextCtrl();
|
||||||
if ( tc && tc != DoFindFocus() )
|
if ( tc && tc != DoFindFocus() )
|
||||||
#ifdef __WXMAC__
|
|
||||||
m_resetFocus = true;
|
|
||||||
#else
|
|
||||||
{
|
{
|
||||||
tc->SetFocus();
|
tc->SetFocus();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Refresh();
|
Refresh();
|
||||||
|
Reference in New Issue
Block a user