]> git.saurik.com Git - wxWidgets.git/blobdiff - src/propgrid/propgrid.cpp
Added work around in wxPropertyGrid for a wxTextCtrl beep on enter press
[wxWidgets.git] / 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);
     }