From: Julian Smart Date: Sat, 9 Apr 2011 10:28:45 +0000 (+0000) Subject: Correction to position in character insertion event when also deleting selected text. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c1dd924de0ad108f39788e998a059c2825944668 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 --- diff --git a/src/richtext/richtextctrl.cpp b/src/richtext/richtextctrl.cpp index d66ac66938..8a8f5c130d 100644 --- a/src/richtext/richtextctrl.cpp +++ b/src/richtext/richtextctrl.cpp @@ -1221,6 +1221,7 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event) SetDefaultStyleToCursorStyle(); ScrollIntoView(m_caretPosition, WXK_RIGHT); + cmdEvent.SetPosition(m_caretPosition); GetEventHandler()->ProcessEvent(cmdEvent); Update();