From: Jaakko Salli Date: Thu, 25 Feb 2010 15:05:09 +0000 (+0000) Subject: Added work around in wxPropertyGrid for a wxTextCtrl beep on enter press X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d2a82a6f7d2034cf8b2fd624b80515cd7248b11f 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 --- 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); }