From 394026c36e6b1b60a23caae27366ae84ee90f9b2 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Fri, 8 May 2015 09:47:46 +0100 Subject: [PATCH] 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. --- src/prefs/KeyConfigPrefs.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/prefs/KeyConfigPrefs.cpp b/src/prefs/KeyConfigPrefs.cpp index 47ffe6d6b..dbd71e275 100644 --- a/src/prefs/KeyConfigPrefs.cpp +++ b/src/prefs/KeyConfigPrefs.cpp @@ -151,6 +151,7 @@ void KeyConfigPrefs::Populate() else if (mViewByKey->GetValue()) { mViewType = ViewByKey; mFilterLabel->SetLabel(_("&Hotkey:")); + mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel())); } mView->SetView(mViewType); @@ -207,7 +208,7 @@ void KeyConfigPrefs::PopulateOrExchange(ShuttleGui & S) wxSize(210, -1), #endif wxTE_PROCESS_ENTER); - mFilter->SetName(_("Filter")); + mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel())); mFilter->Connect(wxEVT_KEY_DOWN, wxKeyEventHandler(KeyConfigPrefs::OnFilterKeyDown), NULL, @@ -617,6 +618,7 @@ void KeyConfigPrefs::OnViewBy(wxCommandEvent & e) } mView->SetView(mViewType); + mFilter->SetName(wxStripMenuCodes(mFilterLabel->GetLabel())); } bool KeyConfigPrefs::Apply()