]> git.saurik.com Git - wxWidgets.git/commitdiff
changed meaning of Ctrl-End to be symetrical with Ctrl-Home
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 29 Jan 2000 01:12:26 +0000 (01:12 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 29 Jan 2000 01:12:26 +0000 (01:12 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/scrolwin.cpp

index 6370bbb3560ebf339ac1bc611d36b2d437731bba..5dd7c93d2d067e7293211abf22bdaa47aaa35061 100644 (file)
@@ -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: