From d2a82a6f7d2034cf8b2fd624b80515cd7248b11f Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Thu, 25 Feb 2010 15:05:09 +0000 Subject: [PATCH 1/1] Added work around in wxPropertyGrid for a wxTextCtrl beep on enter press git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/propgrid/propgrid.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/propgrid/propgrid.cpp b/src/propgrid/propgrid.cpp index 0ba675584e..7e38cfb439 100644 --- a/src/propgrid/propgrid.cpp +++ b/src/propgrid/propgrid.cpp @@ -3731,6 +3731,13 @@ private: m_propGrid->HandleCustomEditorEvent(event); + // + // NB: On wxMSW, a wxTextCtrl with wxTE_PROCESS_ENTER + // may beep annoyingly if that event is skipped + // and passed to parent event handler. + if ( event.GetEventType() == wxEVT_COMMAND_TEXT_ENTER ) + return true; + return wxEvtHandler::ProcessEvent(event); } -- 2.45.2