Always send wxEVT_COMMAND_RICHTEXT_DELETE event if delete or back key pressed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1176,7 +1176,8 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
||||
|
||||
ScrollIntoView(m_caretPosition, WXK_LEFT);
|
||||
|
||||
if (deletions > 0)
|
||||
// Always send this event; wxEVT_COMMAND_RICHTEXT_CONTENT_DELETED will be sent only if there is an actual deletion.
|
||||
//if (deletions > 0)
|
||||
{
|
||||
wxRichTextEvent cmdEvent(
|
||||
wxEVT_COMMAND_RICHTEXT_DELETE,
|
||||
@@ -1314,7 +1315,8 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
||||
|
||||
ScrollIntoView(m_caretPosition, WXK_LEFT);
|
||||
|
||||
if (deletions > 0)
|
||||
// Always send this event; wxEVT_COMMAND_RICHTEXT_CONTENT_DELETED will be sent only if there is an actual deletion.
|
||||
//if (deletions > 0)
|
||||
{
|
||||
wxRichTextEvent cmdEvent(
|
||||
wxEVT_COMMAND_RICHTEXT_DELETE,
|
||||
@@ -1387,7 +1389,8 @@ void wxRichTextCtrl::OnChar(wxKeyEvent& event)
|
||||
|
||||
ScrollIntoView(m_caretPosition, WXK_LEFT);
|
||||
|
||||
if (deletions > 0)
|
||||
// Always send this event; wxEVT_COMMAND_RICHTEXT_CONTENT_DELETED will be sent only if there is an actual deletion.
|
||||
//if (deletions > 0)
|
||||
{
|
||||
wxRichTextEvent cmdEvent(
|
||||
wxEVT_COMMAND_RICHTEXT_DELETE,
|
||||
|
Reference in New Issue
Block a user