mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
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:
parent
3c5906193b
commit
185d555fc6
@ -1364,8 +1364,9 @@ TrackPanelCell *TrackPanel::GetFocusedCell()
|
|||||||
|
|
||||||
void TrackPanel::SetFocusedCell()
|
void TrackPanel::SetFocusedCell()
|
||||||
{
|
{
|
||||||
// This may have a side-effet of assigning a focus if there was none
|
// This may have a side-effect of assigning a focus if there was none
|
||||||
TrackFocus::Get( *GetProject() ).Get();
|
auto& trackFocus = TrackFocus::Get(*GetProject());
|
||||||
|
trackFocus.Set(trackFocus.Get());
|
||||||
KeyboardCapture::Capture(this);
|
KeyboardCapture::Capture(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user