Fix ending label-editing bug when clicking elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2071,6 +2071,8 @@ void wxListHeaderWindow::OnMouse( wxMouseEvent &event )
|
|||||||
|
|
||||||
void wxListHeaderWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) )
|
void wxListHeaderWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) )
|
||||||
{
|
{
|
||||||
|
wxPrintf( wxT("OnSetFocus\n") );
|
||||||
|
|
||||||
m_owner->SetFocus();
|
m_owner->SetFocus();
|
||||||
m_owner->Update();
|
m_owner->Update();
|
||||||
}
|
}
|
||||||
@@ -3009,7 +3011,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
|||||||
#endif // __WXMAC__
|
#endif // __WXMAC__
|
||||||
|
|
||||||
if ( event.LeftDown() )
|
if ( event.LeftDown() )
|
||||||
SetFocus();
|
SetFocusIgnoringChildren();
|
||||||
|
|
||||||
event.SetEventObject( GetParent() );
|
event.SetEventObject( GetParent() );
|
||||||
if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
|
if ( GetParent()->GetEventHandler()->ProcessEvent( event) )
|
||||||
|
Reference in New Issue
Block a user