mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
When 'OK' is the default button it is now also given focus, so that ENTER will push it.
This commit is contained in:
parent
3c165e7898
commit
98ca2b474b
@ -2008,6 +2008,8 @@ 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 )
|
||||||
@ -2020,6 +2022,8 @@ 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 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user