Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 2547 - Shift + Click may select incorrect tracks
Shift + Click may select incorrect tracks
Status: REOPENED
Product: Audacity
Classification: Unclassified
Component: User Interface
2.4.2
All All
: P4 RepeatableAll
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-09-23 11:11 UTC by Steve Daulton
Modified: 2021-02-14 09:44 UTC (History)
9 users (show)

See Also:
Steps To Reproduce:
1. Create a project with two audio tracks. 2. "Ctrl + A" to select all 3. "Ctrl + Click" on the "Select" button of the second track to de-select it. 4. "Up" key to move focus to the first track 5. "Shift + Click" on the first track to adjust the end of the selection. 6.Observe that the second track becomes selected again.
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed:
petersampsonaudacity: Test‑OK‑Win?
petersampsonaudacity: Test‑OK‑Mac?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Daulton 2020-09-23 11:11:36 UTC
1. Create a project with two audio tracks.
2. "Ctrl + A" to select all
3. "Ctrl + Click" on the "Select" button of the second track to de-select it.
4. "Up" key to move focus to the first track
5. "Shift + Click" on the first track to adjust the end of the selection.
6.Observe that the second track becomes selected again.

In my opinion, step 4 should be irrelevant because we are selecting with the mouse.
In the above case, step 5 should adjust the selection in the currently selected track.

In the general case, I think that shift + click should adjust the length of the selection in all selected tracks, and the track that is clicked.
Comment 1 Leland Lucius 2021-02-12 16:12:49 UTC
Fix in:

https://github.com/audacity/audacity/commit/0c23435
Comment 2 David Bailes 2021-02-13 08:44:14 UTC
(In reply to Leland Lucius from comment #1)
> Fix in:
> 
> https://github.com/audacity/audacity/commit/0c23435

This fix has changed to behaviour of the move focus to next/previous track commands. Prior to the fix, the selection of the tracks was unchanged.

Robert has made the suggestion that the behaviour of these commands might be changed in the future, but this would need further discussion, and now in not the time to change the behaviour.
Comment 3 Peter Sampson 2021-02-13 14:10:08 UTC
Tested on W10  and macOS 11.2.1 Bug Sur with Audacity 3.0.0 b928e7e

This now behaves properly on both platforms - at Step 6 the second track does not become selected.

I also observed the errant behavior in 2.4.2
Comment 4 Peter Sampson 2021-02-13 14:14:51 UTC
So although this bug as described is now "fixed" - I shall hold off closing this until we resolve David's compalint abot change behavior in Comment #2
Comment 5 James Crook 2021-02-13 14:45:26 UTC
Re Comment 2:

Moving selection and focus together seems logical to me, though perhaps it might mean an update is required to some Jaws or other script.

I suspect the change is neutral or an improvement.  I think the discussion should be had, and now.  If there is no clear consensus, then Leland's fix stands and we close this bug.
Comment 6 Steve Daulton 2021-02-13 17:02:50 UTC
(In reply to James Crook from comment #5)
I can see David's point.

Previously, "Move focus to next track" was consistent with "Move focus to last track", in that it moved focus only (the selection did not change).

Now, "Move focus to next track" and "Move focus to last track" are NOT consistent.
"Move focus to last track" moves focus only (the selection did not change).
"Move focus to next track" moves focus AND the selection.

Consistency is good.
Comment 7 Peter Sampson 2021-02-13 17:06:17 UTC
(In reply to Steve Daulton from comment #6)
Actually there is a regression (mainly for VI users) with this change

See:
https://alphamanual.audacityteam.org/man/Audio_Tracks#panel

This means that it is difficult/impossible for VI users now to make multiple tracks selected unless they are contiguous.

Try it with four mono tracks start with the fourth selected and try then to also select tracks one or two

A) In 2.4.2
a) select 4th track
b) up-arrow
c) Observe Focus moves to track 3, but track 4 remains selected
d) up-arrow
e) Observe Focus moves to track 3, but track 4 remains selected
d) Enter
e) Observe: now track and track 4 are selected

B) now with 3.0.0
a) select 4th track
b) up-arrow
c) Observe: focus move to track 3 but so does selection

So this may make life tougher for VI folk - or keyboard warriors
Comment 8 Peter Sampson 2021-02-14 09:40:04 UTC
(In reply to Peter Sampson from comment #7)
Because of the changed behavior elsewhere as reported by David in Comment #2
and the use case in Comment #4 that illustrates the downside of that change, this fix must either:

a) be reverted, or
 
b) be fixed in a different way such that the behavior of the up/down arrows with focused tracks remains only moving the focus and not the selection,
Comment 9 Leland Lucius 2021-02-14 09:44:55 UTC
As I don't see another way to do it "quickly" without having some discussions, I've reverted here:

https://github.com/audacity/audacity/commit/5f68102