SEARCH_PANE_TAB: fix a typo and add missing event handler.

This commit is contained in:
jean-pierre charras 2022-09-25 16:40:08 +02:00
parent 5550da38e0
commit 28165c6a31
1 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,8 @@ SEARCH_PANE_LISTVIEW::SEARCH_PANE_LISTVIEW( SEARCH_HANDLER* handler, wxWindow* p
RefreshColumnNames(); RefreshColumnNames();
Bind( wxEVT_LIST_ITEM_SELECTED, &SEARCH_PANE_LISTVIEW::OnItemSelected, this ); Bind( wxEVT_LIST_ITEM_SELECTED, &SEARCH_PANE_LISTVIEW::OnItemSelected, this );
Bind( wxEVT_LIST_ITEM_DESELECTED, &SEARCH_PANE_LISTVIEW::OnItemSelected, this ); Bind( wxEVT_LIST_ITEM_FOCUSED, &SEARCH_PANE_LISTVIEW::OnItemSelected, this );
Bind( wxEVT_LIST_ITEM_DESELECTED, &SEARCH_PANE_LISTVIEW::OnItemDeselected, this );
} }
@ -60,6 +61,8 @@ void SEARCH_PANE_LISTVIEW::OnItemSelected( wxListEvent& aEvent )
std::vector<long> list; std::vector<long> list;
GetSelectRowsList( list ); GetSelectRowsList( list );
m_handler->SelectItems( list ); m_handler->SelectItems( list );
aEvent.Skip();
} }