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
This commit is contained in:
@@ -3731,6 +3731,13 @@ private:
|
|||||||
|
|
||||||
m_propGrid->HandleCustomEditorEvent(event);
|
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);
|
return wxEvtHandler::ProcessEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user