From: Julian Smart Date: Mon, 30 Oct 2006 10:11:32 +0000 (+0000) Subject: Call Update after user input to improve responsiveness X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/621ae37407179f28e22751601eeb0e3136ed9a80?ds=sidebyside 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 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index bf308ffb7a..ae7de57722 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -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(); } } }