| 133 | } |
| 134 | |
| 135 | void TrackPanelAx::Updated() |
| 136 | { |
| 137 | #if wxUSE_ACCESSIBILITY |
| 138 | auto pFocus = mwFocus.lock(); |
| 139 | if (!pFocus) |
| 140 | return; |
| 141 | |
| 142 | auto t = pFocus->GetFocus(); |
| 143 | mTrackName = true; |
| 144 | |
| 145 | // The object_focus event is only needed by Window-Eyes |
| 146 | // and can be removed when we cease to support this screen reader. |
| 147 | NotifyEvent(wxACC_EVENT_OBJECT_FOCUS, |
| 148 | GetWindow(), |
| 149 | wxOBJID_CLIENT, |
| 150 | pFocus->TrackNum(t)); |
| 151 | |
| 152 | NotifyEvent(wxACC_EVENT_OBJECT_NAMECHANGE, |
| 153 | GetWindow(), |
| 154 | wxOBJID_CLIENT, |
| 155 | pFocus->TrackNum(t)); |
| 156 | #endif |
| 157 | } |
| 158 | |
| 159 | void TrackPanelAx::MessageForScreenReader(const TranslatableString& message) |
| 160 | { |