From dd90475f716c776721e79b88121b82193f4286ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 27 Aug 2011 15:23:43 +0000 Subject: [PATCH] Use wxTE_PROCESS_ENTER with wxDataViewCtrl text controls. wxDVC code depends on wxEVT_COMMAND_TEXT_ENTER to hide the inline editing controls. Fixes #13412. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/datavgen.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index aed94af241..60849d9ff3 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -791,7 +791,8 @@ wxWindow* wxDataViewTextRenderer::CreateEditorCtrl( wxWindow *parent, { wxTextCtrl* ctrl = new wxTextCtrl( parent, wxID_ANY, value, wxPoint(labelRect.x,labelRect.y), - wxSize(labelRect.width,labelRect.height) ); + wxSize(labelRect.width,labelRect.height), + wxTE_PROCESS_ENTER ); // select the text in the control an place the cursor at the end ctrl->SetInsertionPointEnd(); @@ -1177,7 +1178,8 @@ wxWindow* wxDataViewIconTextRenderer::CreateEditorCtrl(wxWindow *parent, wxRect wxTextCtrl* ctrl = new wxTextCtrl( parent, wxID_ANY, text, wxPoint(labelRect.x,labelRect.y), - wxSize(labelRect.width,labelRect.height) ); + wxSize(labelRect.width,labelRect.height), + wxTE_PROCESS_ENTER ); // select the text in the control an place the cursor at the end ctrl->SetInsertionPointEnd(); -- 2.45.2