diff --git a/include/wx/propgrid/propgrid.h b/include/wx/propgrid/propgrid.h index e22071ab4a..8737abd2af 100644 --- a/include/wx/propgrid/propgrid.h +++ b/include/wx/propgrid/propgrid.h @@ -1822,11 +1822,7 @@ protected: wxVariant* pValue = NULL, unsigned int selFlags = 0 ); - void SetFocusOnCanvas() - { - m_canvas->SetFocusIgnoringChildren(); - m_editorFocused = 0; - } + void SetFocusOnCanvas(); bool DoHideProperty( wxPGProperty* p, bool hide, int flags ); diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index e161307f77..7e08170b36 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -4113,6 +4113,12 @@ void wxPropertyGrid::SetVirtualWidth( int width ) m_pState->SetVirtualWidth( width ); } +void wxPropertyGrid::SetFocusOnCanvas() +{ + m_canvas->SetFocusIgnoringChildren(); + m_editorFocused = 0; +} + // ----------------------------------------------------------------------- // wxPropertyGrid mouse event handling // -----------------------------------------------------------------------