From 1c95468e1d6a1dc6b1858978f8c47c42fe0e0a47 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 7 Apr 2005 23:27:33 +0000 Subject: [PATCH] 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 --- src/generic/fdrepdlg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);