In wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3418,6 +3418,15 @@ void wxPropertyGrid::HandleCustomEditorEvent( wxEvent &event )
|
|||||||
if ( !m_pState )
|
if ( !m_pState )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// Don't care about the event if it originated from the
|
||||||
|
// 'label editor'. In this function we only care about the
|
||||||
|
// property value editor.
|
||||||
|
if ( m_labelEditor && event.GetId() == m_labelEditor->GetId() )
|
||||||
|
{
|
||||||
|
event.Skip();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wxPGProperty* selected = GetSelection();
|
wxPGProperty* selected = GetSelection();
|
||||||
|
|
||||||
// Somehow, event is handled after property has been deselected.
|
// Somehow, event is handled after property has been deselected.
|
||||||
|
Reference in New Issue
Block a user