Added wxPropertyGrid::DedicateKey(), which prevents specific key presses from being eaten by editor controls. This is useful for customizing keyboard navigation. Also added utility function wxPGFindInVector<>(), which is used in the new code, and also in some other places.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1299,13 +1299,8 @@ bool wxPropertyGridPageState::DoSetPropertyValueWxObjectPtr( wxPGProperty* p, wx
|
||||
|
||||
bool wxPropertyGridPageState::DoIsPropertySelected( wxPGProperty* prop ) const
|
||||
{
|
||||
const wxArrayPGProperty& selection = m_selection;
|
||||
|
||||
for ( unsigned int i=0; i<selection.size(); i++ )
|
||||
{
|
||||
if ( selection[i] == prop )
|
||||
return true;
|
||||
}
|
||||
if ( wxPGFindInVector(m_selection, prop) != wxNOT_FOUND )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user