Avoid horizontal scrolling when pressing Shift-Page Up/Down

Scroll the new end of selection into view only vertically, it would be
unexpected for the vertical Page Up/Down movement to scroll the grid
horizontally.
This commit is contained in:
Vadim Zeitlin 2020-04-13 14:21:07 +02:00
parent 033f006722
commit 62cb90b455

View File

@ -8040,7 +8040,7 @@ wxGrid::DoMoveCursorByPage(const wxKeyboardState& kbdState,
return false;
if ( m_selection->ExtendCurrentBlock(m_currentCellCoords, coords, kbdState) )
MakeCellVisible(coords);
MakeCellVisible(diroper.MakeWholeLineCoords(coords));
}
else
{