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:
@@ -454,6 +454,8 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
|
|
||||||
EndBatchUndo();
|
EndBatchUndo();
|
||||||
SetDefaultStyleToCursorStyle();
|
SetDefaultStyleToCursorStyle();
|
||||||
|
|
||||||
|
ScrollIntoView(m_caretPosition, WXK_RIGHT);
|
||||||
}
|
}
|
||||||
else if (event.GetKeyCode() == WXK_BACK)
|
else if (event.GetKeyCode() == WXK_BACK)
|
||||||
{
|
{
|
||||||
@@ -483,6 +485,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
SetDefaultStyleToCursorStyle();
|
SetDefaultStyleToCursorStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScrollIntoView(m_caretPosition, WXK_LEFT);
|
||||||
}
|
}
|
||||||
else if (event.GetKeyCode() == WXK_DELETE)
|
else if (event.GetKeyCode() == WXK_DELETE)
|
||||||
{
|
{
|
||||||
@@ -524,6 +527,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
EndBatchUndo();
|
EndBatchUndo();
|
||||||
|
|
||||||
SetDefaultStyleToCursorStyle();
|
SetDefaultStyleToCursorStyle();
|
||||||
|
ScrollIntoView(m_caretPosition, WXK_RIGHT);
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user