Validate the value in the first and last property of wxPropertyGrid

wxPGProperty value edited in the first or last property of wxPropertyGrid
should be validated while attempting to navigate to the previous/next
property.

Closes #19315.
This commit is contained in:
Artur Wieczorek
2021-12-04 12:18:20 +01:00
parent 552c9dd4ff
commit 67752c3870

View File

@@ -5803,6 +5803,11 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
if ( reopenLabelEditorCol >= 0 )
DoBeginLabelEdit(reopenLabelEditorCol);
}
else if ( action == wxPG_ACTION_EDIT )
{
// For first and last item just validate the value
CommitChangesFromEditor();
}
wasHandled = true;
}
}