mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-02 17:23:18 +02:00
Keep NVDA from saying "panel panel" when dialogs get focus
This will need to be tested with JAWS and Window Eyes.
This commit is contained in:
parent
0f3358248b
commit
6212da3e2d
@ -740,6 +740,10 @@ wxScrolledWindow * ShuttleGuiBase::StartScroller(int iStyle)
|
||||
Style( wxSUNKEN_BORDER ) );
|
||||
pScroller->SetScrollRate( 20,20 );
|
||||
|
||||
// This fools NVDA into not saying "Panel" when the dialog gets focus
|
||||
pScroller->SetName(wxT(","));
|
||||
pScroller->SetLabel(wxT(","));
|
||||
|
||||
mpWind->SetBackgroundColour(
|
||||
iStyle==0
|
||||
? wxColour( 245,244,240) :
|
||||
|
@ -2446,6 +2446,10 @@ public:
|
||||
EffectPanel(wxWindow *parent)
|
||||
: wxPanel(parent)
|
||||
{
|
||||
// This fools NVDA into not saying "Panel" when the dialog gets focus
|
||||
SetName(wxT(","));
|
||||
SetLabel(wxT(","));
|
||||
|
||||
mAcceptsFocus = true;
|
||||
}
|
||||
|
||||
|
@ -3486,6 +3486,11 @@ void VSTEffect::BuildPlain()
|
||||
scroller->SetMinSize(wxSize(wxMax(600, mParent->GetSize().GetWidth() * 2 / 3),
|
||||
mParent->GetSize().GetHeight() / 2));
|
||||
scroller->SetScrollRate(0, 20);
|
||||
|
||||
// This fools NVDA into not saying "Panel" when the dialog gets focus
|
||||
scroller->SetName(wxT(","));
|
||||
scroller->SetLabel(wxT(","));
|
||||
|
||||
mainSizer->Add(scroller, 1, wxEXPAND | wxALL, 5);
|
||||
mParent->SetSizer(mainSizer);
|
||||
|
||||
|
@ -1018,6 +1018,11 @@ bool LadspaEffect::PopulateUI(wxWindow *parent)
|
||||
wxDefaultSize,
|
||||
wxVSCROLL | wxTAB_TRAVERSAL);
|
||||
w->SetScrollRate(0, 20);
|
||||
|
||||
// This fools NVDA into not saying "Panel" when the dialog gets focus
|
||||
w->SetName(wxT(","));
|
||||
w->SetLabel(wxT(","));
|
||||
|
||||
mainSizer->Add(w, 0, wxEXPAND);
|
||||
mParent->SetSizer(mainSizer);
|
||||
|
||||
@ -1025,7 +1030,7 @@ bool LadspaEffect::PopulateUI(wxWindow *parent)
|
||||
|
||||
if (mNumInputControls)
|
||||
{
|
||||
wxSizer *paramSizer = new wxStaticBoxSizer(wxVERTICAL, w, _("Effect Settings"));
|
||||
wxStaticBoxSizer *paramSizer = new wxStaticBoxSizer(wxVERTICAL, w, _("Effect Settings"));
|
||||
|
||||
wxFlexGridSizer *gridSizer = new wxFlexGridSizer(5, 0, 0);
|
||||
gridSizer->AddGrowableCol(3);
|
||||
|
@ -1470,6 +1470,11 @@ bool LV2Effect::BuildPlain()
|
||||
wxDefaultSize,
|
||||
wxVSCROLL | wxTAB_TRAVERSAL);
|
||||
w->SetScrollRate(0, 20);
|
||||
|
||||
// This fools NVDA into not saying "Panel" when the dialog gets focus
|
||||
w->SetName(wxT(","));
|
||||
w->SetLabel(wxT(","));
|
||||
|
||||
outerSizer->Add(w, 1, wxEXPAND);
|
||||
|
||||
wxSizer *innerSizer = new wxBoxSizer(wxVERTICAL);
|
||||
|
@ -1877,6 +1877,10 @@ void NyquistEffect::BuildEffectWindow(ShuttleGui & S)
|
||||
S.EndScroller();
|
||||
|
||||
scroller->SetScrollRate(0, 20);
|
||||
|
||||
// This fools NVDA into not saying "Panel" when the dialog gets focus
|
||||
scroller->SetName(wxT(","));
|
||||
scroller->SetLabel(wxT(","));
|
||||
}
|
||||
|
||||
// NyquistEffect implementation
|
||||
|
Loading…
x
Reference in New Issue
Block a user