]> git.saurik.com Git - wxWidgets.git/commitdiff
Added work around in wxPropertyGrid for a wxTextCtrl beep on enter press
authorJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Feb 2010 15:05:09 +0000 (15:05 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Thu, 25 Feb 2010 15:05:09 +0000 (15:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/propgrid.cpp

index 0ba675584e21cd2a2d27c81bfe6aebf855ae2b9c..7e38cfb439ae605ab610ae78cd24596ab7ef2013 100644 (file)
@@ -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);
     }