1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 14:16:28 +01:00

Selection bar drop down list box: Fix name read by Jaws screen reader

Problem: If the accessibility name of a control is empty, Jaws may use nearly text for the name - in this case Audio position.

Fix: Set the accessibility name to "\a".
This commit is contained in:
David Bailes
2017-07-14 16:31:24 +01:00
parent 4a500c77dd
commit 2185b42d84

View File

@@ -336,6 +336,7 @@ void SelectionBar::Populate()
mChoice = safenew wxChoice
(this, ChoiceID, wxDefaultPosition, wxDefaultSize, 4, choices,
0, wxDefaultValidator, "");
mChoice->SetName(wxT("\a")); // stop Jaws screen reader using nearby text for name when name is empty
mChoice->SetSelection(0);
mainSizer->Add(mChoice, 0, wxALIGN_TOP | wxEXPAND | wxRIGHT, 6);
#endif