From 28165c6a312340e351923ea261ed46e486ec4c33 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 25 Sep 2022 16:40:08 +0200 Subject: [PATCH] SEARCH_PANE_TAB: fix a typo and add missing event handler. --- common/widgets/search_pane_tab.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/widgets/search_pane_tab.cpp b/common/widgets/search_pane_tab.cpp index 880dafa30d..a7a2c9e5da 100644 --- a/common/widgets/search_pane_tab.cpp +++ b/common/widgets/search_pane_tab.cpp @@ -33,7 +33,8 @@ SEARCH_PANE_LISTVIEW::SEARCH_PANE_LISTVIEW( SEARCH_HANDLER* handler, wxWindow* p RefreshColumnNames(); 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 list; GetSelectRowsList( list ); m_handler->SelectItems( list ); + + aEvent.Skip(); }