Fixed #15717: wxRichTextStyleOrganiserDialog returns wxID_OK when closed with Escape key (ikamakj)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2013-12-02 10:38:04 +00:00
parent ac60e751a4
commit b815c1b44d

View File

@@ -349,6 +349,9 @@ void wxRichTextStyleOrganiserDialog::CreateControls()
}
else
{
// Avoid the Escape key logic falling back on OK after finding
// a hidden wxID_CANCEL contol
m_closeButton->SetId(wxID_HIGHEST);
m_buttonSizer->Show(m_closeButton, false);
}