mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-04 10:43:08 +01:00
Removed over aggressive SetFocus() so that OK button does not initially have focus in, for example, preferences.
This commit is contained in:
@@ -2008,8 +2008,6 @@ wxSizer *CreateStdButtonSizer(wxWindow *parent, long buttons, wxButton *extra)
|
|||||||
b = new wxButton( parent, wxID_OK );
|
b = new wxButton( parent, wxID_OK );
|
||||||
b->SetDefault();
|
b->SetDefault();
|
||||||
bs->AddButton( b );
|
bs->AddButton( b );
|
||||||
// Needs to be default and focus for ENTER to work.
|
|
||||||
b->SetFocus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( buttons & eCancelButton )
|
if( buttons & eCancelButton )
|
||||||
@@ -2022,8 +2020,6 @@ wxSizer *CreateStdButtonSizer(wxWindow *parent, long buttons, wxButton *extra)
|
|||||||
b = new wxButton( parent, wxID_YES );
|
b = new wxButton( parent, wxID_YES );
|
||||||
b->SetDefault();
|
b->SetDefault();
|
||||||
bs->AddButton( b );
|
bs->AddButton( b );
|
||||||
// Needs to be default and focus for ENTER to work.
|
|
||||||
b->SetFocus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( buttons & eNoButton )
|
if( buttons & eNoButton )
|
||||||
|
|||||||
Reference in New Issue
Block a user