Skip to content

Rename the "PlayOnce" test step to "PlaySelection" - #12867

Merged
luapmartin merged 1 commit into
audacity:masterfrom
luapmartin:luapmartin/Add-back-missing-AU3-shortcuts-2
Nov 26, 2026
Merged

luapmartin merged 1 commit into
audacity:masterfrom
luapmartin:luapmartin/Add-back-missing-AU3-shortcuts-2

Conversation

@luapmartin

Copy link
Copy Markdown
Contributor

Resolves: #12062

adjust shortcut

  • I signed CLA
  • This PR includes AI assistance
  • If the PR is AI-assisted, I have read, understood and complied with the guidelines for AI-assisted contributions
  • 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

@luapmartin luapmartin self-assigned this Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The play-selection shortcut changed from Shift+Space to W. The test shortcut helper replaced PlayOnce with PlaySelection, which sends W.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: Minimal · up to e1533

The play-selection shortcut moves from Shift+Space to W, consistent with the linked issue. No concrete merge risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description check Passed The description links issue #12062 and gives a short reason, 'adjust shortcut'. The motivation is thin, and it does not say what the shortcut was before or why W is the right key. The template checkli…
Linked Issues check Passed Issue #12062 has two coding requirements: (1) W to play selection; (2) Home and End to rewind to start and end.

(1) [#12062] W to play selection: At the reviewed head, `src/app/configs/data/shortcuts…
Out of Scope Changes check Passed The PR changes two files. Both relate to #12062.

- src/app/configs/data/shortcuts.json: one line changed (per summary), binding Play Selection to W. This implements the W requirement of #12062.
-…
Title check Passed The title "Rename the "PlayOnce" test step to "PlaySelection"" matches the main change in the changeset. The PR replaces the exported PlayOnce() method in share/testflowscripts/steps/Shortcut.js with …
Full details: Description check

Explanation

The description links issue #12062 and gives a short reason, 'adjust shortcut'. The motivation is thin, and it does not say what the shortcut was before or why W is the right key. The template checklist is filled in, but several items are unchecked: AI assistance status, the sequence of reviewable commits, and the AI guidelines item. Those may not apply, but the author should confirm. The core required content is present, so the check passes, with a suggestion to expand the motivation.

Full details: Linked Issues check

Explanation

Issue #12062 has two coding requirements: (1) W to play selection; (2) Home and End to rewind to start and end.

(1) [#12062] W to play selection: At the reviewed head, src/app/configs/data/shortcuts.json binds command://playback/play-selection to ["W"] in the PLAYBACK scope. The whole-PR file diff could not be read, but the head file content shows this binding. The raw summary reports a one-line change in this file, which matches the Shift+Space to W replacement. share/testflowscripts/steps/Shortcut.js (verified by diff) replaces PlayOnce() with PlaySelection(), which sends W. This adds an automated test step for the shortcut. Requirement met.

(2) [#12062] Home and End rewind: At the reviewed head, shortcuts.json maps command://playback/rewind-start to ["Home"] and command://playback/rewind-end to ["End"] in the TIMELINE scope. The raw summary reports only the play-selection line changed, so this PR does not introduce these mappings. The existing implementation satisfies this requirement.

No unmet coding requirement found for #12062. Residual uncertainty: the whole-PR diff of shortcuts.json was unavailable, so the one-line change is taken from the summary.

Full details: Out of Scope Changes check

Explanation

The PR changes two files. Both relate to #12062.

  • src/app/configs/data/shortcuts.json: one line changed (per summary), binding Play Selection to W. This implements the W requirement of #12062.
  • share/testflowscripts/steps/Shortcut.js (verified by diff): PlayOnce() (sending Shift+Space) is replaced by PlaySelection() (sending W). This updates the test step to match the new binding. It is supporting test code for the same objective.

No unrelated change was found. Residual uncertainty: the shortcuts.json diff could not be read directly, so its scope rests on the summary's line count.

Full details: Title check

Explanation

The title "Rename the "PlayOnce" test step to "PlaySelection"" matches the main change in the changeset. The PR replaces the exported PlayOnce() method in share/testflowscripts/steps/Shortcut.js with PlaySelection(), which sends the W key, and rebinds command://playback/play-selection to W in shortcuts.json. The title names only the rename and omits the shortcut rebinding from Shift+Space to W, which the objectives describe as the core intent. That omission is acceptable because the title covers a real part of the change and is not misleading.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a02452eb-63ae-467c-8659-73ba91e0f11b
Commits

Reviewing files that changed from the base of the PR and between b12ac94 and e153380.

Files selected for processing: 1

  • src/app/configs/data/shortcuts.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@luapmartin
luapmartin force-pushed the luapmartin/Add-back-missing-AU3-shortcuts-2 branch from b12ac94 to e153380 Compare November 26, 2026 16:26
@luapmartin luapmartin changed the title set "W" instead of "Shift+Space" for "Play Selection" Rename the "PlayOnce" test step to "PlaySelection" Nov 26, 2026
@luapmartin
luapmartin force-pushed the luapmartin/Add-back-missing-AU3-shortcuts-2 branch from e153380 to e366487 Compare November 26, 2026 16:53
@luapmartin
luapmartin merged commit 796049b into audacity:master Nov 26, 2026
2 of 5 checks passed
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.

Add back missing AU3 shortcuts

2 participants