Call Update after user input to improve responsiveness

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-30 10:11:32 +00:00
parent e0a717e94d
commit 621ae37407

View File

@@ -554,6 +554,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
GetEventHandler()->ProcessEvent(textEvent);
}
Update();
}
else if (event.GetKeyCode() == WXK_BACK)
{
@@ -583,6 +584,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
}
ScrollIntoView(m_caretPosition, WXK_LEFT);
Update();
}
else if (event.GetKeyCode() == WXK_DELETE)
{
@@ -609,6 +611,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
PositionCaret();
SetDefaultStyleToCursorStyle();
}
Update();
}
else
{
@@ -757,6 +760,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
SetDefaultStyleToCursorStyle();
ScrollIntoView(m_caretPosition, WXK_RIGHT);
Update();
}
}
}