]> git.saurik.com Git - wxWidgets.git/commitdiff
Call Update after user input to improve responsiveness
authorJulian Smart <julian@anthemion.co.uk>
Mon, 30 Oct 2006 10:11:32 +0000 (10:11 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 30 Oct 2006 10:11:32 +0000 (10:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/richtext/richtextctrl.cpp

index bf308ffb7a0f0032054cd5eb96ce0a4fc0b4c56c..ae7de5772277316d46b13917d6f07560f1c65c08 100644 (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();
             }
         }
     }