1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-15 23:59:37 +02:00

Fix for Bug 1267 - Accessibility: some panels used for graphics are included in tab traversal

Bug due to update and wxWidgets bug 1267.
Fix is to add the override of AcceptsFocusFromKeyboard().
This commit is contained in:
David Bailes 2015-11-26 15:21:48 +00:00
parent 88dae8ff7e
commit 13f13490e6
6 changed files with 20 additions and 0 deletions

View File

@ -108,6 +108,9 @@ private:
};
virtual bool AcceptsFocus() const {return false;}
// So that wxPanel is not included in Tab traversal - see wxWidgets bug 15581
virtual bool AcceptsFocusFromKeyboard() const {return false;}
void OnPaint(wxPaintEvent & evt);
void OnMouseCaptureChanged(wxMouseCaptureChangedEvent & evt);

View File

@ -2742,6 +2742,12 @@ public:
return mAcceptsFocus;
}
// So that wxPanel is not included in Tab traversal, when required - see wxWidgets bug 15581
virtual bool AcceptsFocusFromKeyboard() const
{
return mAcceptsFocus;
}
// ============================================================================
// EffectPanel implementation
// ============================================================================

View File

@ -277,6 +277,8 @@ public:
// We don't need or want to accept focus.
bool AcceptsFocus() const { return false; }
// So that wxPanel is not included in Tab traversal - see wxWidgets bug 15581
bool AcceptsFocusFromKeyboard() const { return false; }
void ForceRecalc();

View File

@ -1055,6 +1055,11 @@ bool EffectScienFilterPanel::AcceptsFocus() const
return false;
}
bool EffectScienFilterPanel::AcceptsFocusFromKeyboard() const
{
return false;
}
void EffectScienFilterPanel::OnSize(wxSizeEvent & WXUNUSED(evt))
{
Refresh(false);

View File

@ -143,6 +143,8 @@ public:
// We don't need or want to accept focus.
bool AcceptsFocus() const;
// So that wxPanel is not included in Tab traversal - see wxWidgets bug 15581
bool AcceptsFocusFromKeyboard() const;
void SetFreqRange(double lo, double hi);
void SetDbRange(double min, double max);

View File

@ -257,6 +257,8 @@ class AUDACITY_DLL_API RulerPanel : public wxPanel {
// We don't need or want to accept focus.
bool AcceptsFocus() const { return false; }
// So that wxPanel is not included in Tab traversal - see wxWidgets bug 15581
bool AcceptsFocusFromKeyboard() const { return false; }
public: