mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
Fix to stop the nvda screen reader reading out the name of the track twice when TrackPanelAx::Updated() is called. Prior to the fix, both a namechange and a focus event was generated. After the fix, only a focus event is generated. Tested using the latest versions of Jaws, window-eyes, nvda, and also Jaws 11.
This commit is contained in:
parent
c816d2562d
commit
981bdbb949
@ -162,11 +162,13 @@ void TrackPanelAx::Updated()
|
|||||||
{
|
{
|
||||||
#if wxUSE_ACCESSIBILITY
|
#if wxUSE_ACCESSIBILITY
|
||||||
Track *t = GetFocus();
|
Track *t = GetFocus();
|
||||||
NotifyEvent(wxACC_EVENT_OBJECT_NAMECHANGE,
|
|
||||||
|
// logically, this should be an OBJECT_NAMECHANGE event, but Window eyes 9.1
|
||||||
|
// does not read out the name with this event type, hence use OBJECT_FOCUS.
|
||||||
|
NotifyEvent(wxACC_EVENT_OBJECT_FOCUS,
|
||||||
mTrackPanel,
|
mTrackPanel,
|
||||||
wxOBJID_CLIENT,
|
wxOBJID_CLIENT,
|
||||||
TrackNum(t));
|
TrackNum(t));
|
||||||
SetFocus(t);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user