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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user