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:
parent
88dae8ff7e
commit
13f13490e6
@ -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);
|
||||
|
@ -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
|
||||
// ============================================================================
|
||||
|
@ -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();
|
||||
|
||||
|
@ -1055,6 +1055,11 @@ bool EffectScienFilterPanel::AcceptsFocus() const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool EffectScienFilterPanel::AcceptsFocusFromKeyboard() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
void EffectScienFilterPanel::OnSize(wxSizeEvent & WXUNUSED(evt))
|
||||
{
|
||||
Refresh(false);
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user