Skip to content

Allow track range selection using shift enter - #9600

Merged
embarc-gabriel merged 1 commit into
audacity:masterfrom
embarc-gabriel:9361-track-range-selection-with-shift-enter
Oct 9, 2025
Merged

embarc-gabriel merged 1 commit into
audacity:masterfrom
embarc-gabriel:9361-track-range-selection-with-shift-enter

Conversation

@embarc-gabriel

Copy link
Copy Markdown
Contributor

Resolves: #9361

Allow track range selection using shift + enter.

If a mouse selects the first track, it is used as the base of the range selection.
If the mouse selects more than one track to simplify, ignore the previous selection once to determine which track is the base track, which can have many corner cases.

For selection with the keyboard, on the other hand, we pick the last selected track as the base and clear the selection from tracks that are not within the range between the base and the endpoint of the range selection.
If we have multiple selected tracks and the last action is to deselect a track, the range selection will ignore the selected tracks. This seems to be coherent with what we can see on Linux file explorer for example.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@embarc-gabriel
embarc-gabriel merged commit 8a40ad7 into audacity:master Oct 9, 2025
@embarc-gabriel
embarc-gabriel deleted the 9361-track-range-selection-with-shift-enter branch August 28, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track range selection using shift+enter

2 participants