Use a hash set instead of vector to hold dedicated keys in wxPG.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5700,7 +5700,12 @@ void wxPropertyGrid::HandleKeyEvent( wxKeyEvent &event, bool fromChild )
|
||||
// Except for TAB, ESC, and any keys specifically dedicated to
|
||||
// wxPropertyGrid itself, handle child control events in child control.
|
||||
if ( fromChild &&
|
||||
#if WXWIN_COMPATIBILITY_3_0
|
||||
// Deprecated: use a hash set instead.
|
||||
wxPGFindInVector(m_dedicatedKeys, keycode) == wxNOT_FOUND )
|
||||
#else
|
||||
m_dedicatedKeys.find(keycode) == m_dedicatedKeys.end() )
|
||||
#endif
|
||||
{
|
||||
// Only propagate event if it had modifiers
|
||||
if ( !event.HasModifiers() )
|
||||
|
Reference in New Issue
Block a user