X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/03eccb8316756c462bc2dddbb9395a3d0c05d888..0ffb2aa6e47721eebc485931efaad028b51b0565:/src/generic/listctrl.cpp diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index e285968484..4c7760728a 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3069,6 +3069,9 @@ void wxListMainWindow::OnArrowChar(size_t newCurrent, const wxKeyEvent& event) { ChangeCurrent(newCurrent); + // refresh the old focus to remove it + RefreshLine( oldCurrent ); + // select all the items between the old and the new one if ( oldCurrent > newCurrent ) { @@ -3086,8 +3089,8 @@ void wxListMainWindow::OnArrowChar(size_t newCurrent, const wxKeyEvent& event) ChangeCurrent(newCurrent); - // refresh the old focus to remove it - RefreshLine( oldCurrent ); + // refresh the old focus to remove it + RefreshLine( oldCurrent ); if ( !event.ControlDown() ) { @@ -3095,6 +3098,7 @@ void wxListMainWindow::OnArrowChar(size_t newCurrent, const wxKeyEvent& event) } } + RefreshLine( m_current ); MoveToFocus();