From 306597c4fa88d3fdb03d013ed44592a36fe671e3 Mon Sep 17 00:00:00 2001 From: Jonathan Dagresta Date: Fri, 13 May 2016 15:30:13 +0200 Subject: [PATCH] Ensure wxGenericListCtrl item selected from keyboard is visible When using the keyboard to select an item by typing the first characters of its name, we need to make the item visible in addition to selecting it. Closes #16336. --- src/generic/listctrl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index f2bf936972..1699d58ac8 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3015,6 +3015,7 @@ void wxListMainWindow::OnChar( wxKeyEvent &event ) SetItemState(item, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED, wxLIST_STATE_FOCUSED | wxLIST_STATE_SELECTED); + EnsureVisible(item); // Reset the bell flag if it had been temporarily disabled // before.