From: Václav Slavík Date: Sat, 29 Jan 2000 01:12:26 +0000 (+0000) Subject: changed meaning of Ctrl-End to be symetrical with Ctrl-Home X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/4acd108cafe0eb9cd155af5dad0a6b553d1dfe3f changed meaning of Ctrl-End to be symetrical with Ctrl-Home git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/scrolwin.cpp b/src/generic/scrolwin.cpp index 6370bbb356..5dd7c93d2d 100644 --- a/src/generic/scrolwin.cpp +++ b/src/generic/scrolwin.cpp @@ -660,16 +660,12 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event) Scroll(-1, sty + (5 * cliy / 6)); break; - // notice that handling of Ctrl-Home/End is asymmetrical: Home goes to - // the beginning of the current line, Ctrl-Home returns to the origin - // while End goes to the bottom without changing horizontal position - // and only Ctrl-End does go to the most rightmost position as well case WXK_HOME: Scroll(0, event.ControlDown() ? 0 : -1); break; case WXK_END: - Scroll(event.ControlDown() ? szx - clix : -1, szy - cliy); + Scroll(szx - clix, event.ControlDown() ? szy - cliy : -1); break; case WXK_UP: