Add accelerators to more stuff in the find/replace dialog

This commit is contained in:
Thomas Goyne 2013-10-29 09:35:53 -07:00
parent e15ef04b72
commit dd325acd81

View file

@ -84,8 +84,8 @@ DialogSearchReplace::DialogSearchReplace(agi::Context* c, bool replace)
left_sizer->Add(find_sizer, wxSizerFlags().DoubleBorder(wxBOTTOM));
left_sizer->Add(options_sizer);
wxString field[] = { _("Text"), _("Style"), _("Actor"), _("Effect") };
wxString affect[] = { _("All rows"), _("Selected rows") };
wxString field[] = { _("&Text"), _("St&yle"), _("A&ctor"), _("&Effect") };
wxString affect[] = { _("A&ll rows"), _("Selected &rows") };
auto limit_sizer = new wxBoxSizer(wxHORIZONTAL);
limit_sizer->Add(new wxRadioBox(this, -1, _("In Field"), wxDefaultPosition, wxDefaultSize, countof(field), field, 0, wxRA_SPECIFY_COLS, MakeEnumBinder(&settings->field)), wxSizerFlags().Border(wxRIGHT));
limit_sizer->Add(new wxRadioBox(this, -1, _("Limit to"), wxDefaultPosition, wxDefaultSize, countof(affect), affect, 0, wxRA_SPECIFY_COLS, MakeEnumBinder(&settings->limit_to)));