From 185d555fc62bdfb4f846b47117c78af722ee5227 Mon Sep 17 00:00:00 2001 From: David Bailes Date: Wed, 13 Nov 2019 16:49:02 +0000 Subject: [PATCH] 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 --- src/TrackPanel.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index ac8d1c186..1e125e63b 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -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); }