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
This commit is contained in:
Václav Slavík
2000-01-29 01:12:26 +00:00
parent 67b81440f0
commit 4acd108caf

View 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: