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:
@@ -554,6 +554,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
|
|
||||||
GetEventHandler()->ProcessEvent(textEvent);
|
GetEventHandler()->ProcessEvent(textEvent);
|
||||||
}
|
}
|
||||||
|
Update();
|
||||||
}
|
}
|
||||||
else if (event.GetKeyCode() == WXK_BACK)
|
else if (event.GetKeyCode() == WXK_BACK)
|
||||||
{
|
{
|
||||||
@@ -583,6 +584,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ScrollIntoView(m_caretPosition, WXK_LEFT);
|
ScrollIntoView(m_caretPosition, WXK_LEFT);
|
||||||
|
Update();
|
||||||
}
|
}
|
||||||
else if (event.GetKeyCode() == WXK_DELETE)
|
else if (event.GetKeyCode() == WXK_DELETE)
|
||||||
{
|
{
|
||||||
@@ -609,6 +611,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
PositionCaret();
|
PositionCaret();
|
||||||
SetDefaultStyleToCursorStyle();
|
SetDefaultStyleToCursorStyle();
|
||||||
}
|
}
|
||||||
|
Update();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -757,6 +760,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
|||||||
|
|
||||||
SetDefaultStyleToCursorStyle();
|
SetDefaultStyleToCursorStyle();
|
||||||
ScrollIntoView(m_caretPosition, WXK_RIGHT);
|
ScrollIntoView(m_caretPosition, WXK_RIGHT);
|
||||||
|
Update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user