From: Robin Dunn Date: Thu, 7 Apr 2005 23:27:33 +0000 (+0000) Subject: Set the find button to be the default button. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1c95468e1d6a1dc6b1858978f8c47c42fe0e0a47?ds=inline Set the find button to be the default button. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/fdrepdlg.cpp b/src/generic/fdrepdlg.cpp index 716aaf5aef..787cf1cb5f 100644 --- a/src/generic/fdrepdlg.cpp +++ b/src/generic/fdrepdlg.cpp @@ -174,7 +174,9 @@ bool wxGenericFindReplaceDialog::Create(wxWindow *parent, wxBoxSizer *bttnsizer = new wxBoxSizer(wxVERTICAL); - bttnsizer->Add(new wxButton(this, wxID_FIND), 0, wxALL, 3); + wxButton* btn = new wxButton(this, wxID_FIND); + btn->SetDefault(); + bttnsizer->Add(btn, 0, wxALL, 3); bttnsizer->Add(new wxButton(this, wxID_CANCEL), 0, wxALL, 3);