From 621ae37407179f28e22751601eeb0e3136ed9a80 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 30 Oct 2006 10:11:32 +0000 Subject: [PATCH] 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 --- src/richtext/richtextctrl.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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(); } } } -- 2.45.2