1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

In keyboard prefs set the accessibility name of mFilter to be the same as its label. The name is then the same as the one given in the manual, and the same if as user is using both a screen reader and magnifier.

This commit is contained in:
David Bailes
2015-05-08 09:47:46 +01:00
parent 80529c6697
commit 394026c36e

View File

@@ -151,6 +151,7 @@ void KeyConfigPrefs::Populate()
else if (mViewByKey->GetValue()) { else if (mViewByKey->GetValue()) {
mViewType = ViewByKey; mViewType = ViewByKey;
mFilterLabel->SetLabel(_("&Hotkey:")); mFilterLabel->SetLabel(_("&Hotkey:"));
mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel()));
} }
mView->SetView(mViewType); mView->SetView(mViewType);
@@ -207,7 +208,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S)
wxSize(210, -1), wxSize(210, -1),
#endif #endif
wxTE_PROCESS_ENTER); wxTE_PROCESS_ENTER);
mFilter->SetName(_("Filter")); mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel()));
mFilter->Connect(wxEVT_KEY_DOWN, mFilter->Connect(wxEVT_KEY_DOWN,
wxKeyEventHandler(KeyConfigPrefs::OnFilterKeyDown), wxKeyEventHandler(KeyConfigPrefs::OnFilterKeyDown),
NULL, NULL,
@@ -617,6 +618,7 @@ void KeyConfigPrefs::OnViewBy(wxCommandEvent & e)
} }
mView->SetView(mViewType); mView->SetView(mViewType);
mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel()));
} }
bool KeyConfigPrefs::Apply() bool KeyConfigPrefs::Apply()