Bug2239: Windows, accessibility problem when TrackPanel regains focus

Problem:
When the TrackPanel regains focus, screen readers do not read the track name.
Introduced by the commit: acfd2b70

Fix:
Change TrackPanel::SetFocusedCell() so that it actually sets the focus, rather than just getting it :)

Note: this also fixes bug 2238
This commit is contained in:
David Bailes 2019-11-13 16:49:02 +00:00
parent 3c5906193b
commit 185d555fc6
1 changed files with 3 additions and 2 deletions

View File

@ -1364,8 +1364,9 @@ TrackPanelCell *TrackPanel::GetFocusedCell()
void TrackPanel::SetFocusedCell()
{
// This may have a side-effet of assigning a focus if there was none
TrackFocus::Get( *GetProject() ).Get();
// This may have a side-effect of assigning a focus if there was none
auto& trackFocus = TrackFocus::Get(*GetProject());
trackFocus.Set(trackFocus.Get());
KeyboardCapture::Capture(this);
}