Skip to content

11416 effect panel default focus control - #11634

Merged
embarc-gabriel merged 5 commits into
audacity:masterfrom
embarc-gabriel:11416-effect-button-default-focus
Sep 9, 2026
Merged

embarc-gabriel merged 5 commits into
audacity:masterfrom
embarc-gabriel:11416-effect-button-default-focus

Conversation

@embarc-gabriel

@embarc-gabriel embarc-gabriel commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Resolves: #11416

Shift focus to add effects btn when entering the effect panel by shortcut 'e' or by pressing the effect button on track panel.
When entering the panel the previous control is persisted so we can go back to it when closing the effect panel.

  • 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:

  • Check for regressions on effect panel navigation, including tabing in an out the panel and navigating the elements inside the panel.

  • Press 'e' to enter and close the panel while different elements in focus.

  • Close effect panel while some effect dialog is opened.

  • Testflow test cases have been run

@embarc-gabriel
embarc-gabriel requested a review from Eism August 10, 2026 11:20
@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 8ed1da43-001e-4e80-b3ad-204940b0fc35

📥 Commits

Reviewing files that changed from the base of the PR and between 92f5c0b and f148713.

📒 Files selected for processing (8)
  • src/appshell/qml/Audacity/AppShell/ProjectPage/ProjectPage.qml
  • src/project/internal/projectuiactions.cpp
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TrackEffectList.qml
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TrackEffectsSection.qml
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TracksPanel.qml
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TracksTitleBar.qml
  • src/projectscene/view/trackspanel/realtimeeffectsectionmodel.cpp
  • src/projectscene/view/trackspanel/realtimeeffectsectionmodel.h
🚧 Files skipped from review as they are similar to previous changes (6)
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TracksPanel.qml
  • src/projectscene/view/trackspanel/realtimeeffectsectionmodel.h
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TrackEffectsSection.qml
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TracksTitleBar.qml
  • src/projectscene/qml/Audacity/ProjectScene/trackspanel/TrackEffectList.qml
  • src/appshell/qml/Audacity/AppShell/ProjectPage/ProjectPage.qml

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


📝 Walkthrough

Walkthrough

The change creates one shared effects navigation panel for the project page. QML tracks pending dialog restoration and activates the track effects section when effects open. RealtimeEffectSectionModel tracks focus inside the effects panel, saves the active control when the panel opens, and restores it after closure when it remains registered. Effects actions now require an open project.

Priority: ➖ Normal

Estimated code review effort: 3 (Moderate) | ~20 minutes

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to f1487

Effects-panel opening and closing now moves and restores keyboard focus as intended, while effects actions are limited to open projects. No concrete current-head merge-blocking risk remains.

Sequence Diagram(s)

sequenceDiagram
  participant ProjectPage
  participant TracksPanel
  participant TrackEffectsSection
  participant RealtimeEffectSectionModel
  participant INavigationController

  ProjectPage->>TracksPanel: Inject shared effectsNavigationPanel
  TracksPanel->>TrackEffectsSection: Activate trackEffectsSection
  TrackEffectsSection->>TracksPanel: Report pending dialog restoration
  RealtimeEffectSectionModel->>INavigationController: Save active control on open
  RealtimeEffectSectionModel->>INavigationController: Restore registered control on close
Loading
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the effect panel focus-control change and includes the related issue number.
Description check ✅ Passed The description links issue #11416, explains the focus behavior, and includes the required checklist sections. QA items are listed but remain unchecked.
Linked Issues check ✅ Passed The changes address issue #11416 by focusing the Add effect button when the panel opens, preserving the previous control, restoring focus when the panel closes, and activating the track effects sectio…
Out of Scope Changes check ✅ Passed The changes remain within the effect-panel focus and navigation scope. The action-context updates support the same behavior by limiting effect actions to open projects.

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

Comment @coderabbitai help to get the list of available commands.

@embarc-gabriel
embarc-gabriel force-pushed the 11416-effect-button-default-focus branch from 0067f9a to 76aabf2 Compare August 11, 2026 14:52
@embarc-gabriel
embarc-gabriel force-pushed the 11416-effect-button-default-focus branch from 76aabf2 to f148713 Compare September 9, 2026 09:31
@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@embarc-gabriel
embarc-gabriel merged commit 7487a93 into audacity:master Sep 9, 2026
17 checks passed
kryksyh added a commit that referenced this pull request Sep 22, 2026
11416 effect panel default focus control (#11634)
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.

Keyboard focus should shift to "Add effect" button when opening Effect panel

2 participants