Scroll text into view when typing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-02-02 13:05:30 +00:00
parent 454a21e9cd
commit f9ed2d1680

View File

@ -454,6 +454,8 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
EndBatchUndo();
SetDefaultStyleToCursorStyle();
ScrollIntoView(m_caretPosition, WXK_RIGHT);
}
else if (event.GetKeyCode() == WXK_BACK)
{
@ -483,6 +485,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
SetDefaultStyleToCursorStyle();
}
ScrollIntoView(m_caretPosition, WXK_LEFT);
}
else if (event.GetKeyCode() == WXK_DELETE)
{
@ -524,6 +527,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
EndBatchUndo();
SetDefaultStyleToCursorStyle();
ScrollIntoView(m_caretPosition, WXK_RIGHT);
}
#if 0
else