Correction to position in character insertion event when also deleting selected text.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1221,6 +1221,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
||||
SetDefaultStyleToCursorStyle();
|
||||
ScrollIntoView(m_caretPosition, WXK_RIGHT);
|
||||
|
||||
cmdEvent.SetPosition(m_caretPosition);
|
||||
GetEventHandler()->ProcessEvent(cmdEvent);
|
||||
|
||||
Update();
|
||||
|
Reference in New Issue
Block a user