Skip to content

11367 Timeline keyboard navigation - #12072

Merged
embarc-gabriel merged 2 commits into
audacity:masterfrom
embarc-gabriel:timeline-keyboard-navigation
Sep 16, 2026
Merged

embarc-gabriel merged 2 commits into
audacity:masterfrom
embarc-gabriel:timeline-keyboard-navigation

Conversation

@embarc-gabriel

Copy link
Copy Markdown
Contributor

Resolves: #11367

Add keyboard navigation to the timeline.

Shift+F10 now triggers one global action, item-context-menu, routed by the active navigation section: the track view
forwards to track-view-item-context-menu, the timeline forwards to timeline-context-menu.

The timeline gets its own navigation section after the add-track section.

While the timeline section is active the UI context resolves to project-focused, the same way it does for the track view, so Left and Right resolve to play-position-decrease/increase and move the playhead.

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

  • Testflow test cases have been run

@embarc-gabriel
embarc-gabriel requested a review from Eism September 8, 2026 14:20
@coderabbitai

coderabbitai Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Advanced

Run ID: 408e5608-5322-496f-b9ff-4d57e50dafce

📥 Commits

Reviewing files that changed from the base of the PR and between 97fc8d75eddc31ff315ad2bbd21bc9a90e25c3f2 and 1f35ec8.

📒 Files selected for processing (1)
  • src/projectscene/qml/Audacity/ProjectScene/tracksitemsview/TracksItemsView.qml

📝 Walkthrough

Walkthrough

The change adds timeline navigation to the main project navigation hierarchy. It connects the timeline navigation section to Timeline, adds focus handling, and maps timeline focus to UiCtxProjectFocused. The shared action://context-menu shortcut now routes to the track or timeline context menu based on the active section. Timeline context-menu requests load the menu at the bottom-left of the timeline. Playhead dragging is constrained to time zero, and double-click seeking keeps the current view.

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

Severity of issue fixed: Low

Sequence Diagram(s)

sequenceDiagram
  participant Keyboard
  participant ApplicationActionController
  participant TimelineContext
  participant Timeline
  Keyboard->>ApplicationActionController: action://context-menu
  ApplicationActionController->>TimelineContext: timeline-context-menu
  TimelineContext->>Timeline: emit contextMenuRequested()
  Timeline->>Timeline: load and show context menu
Loading

Merge Risk: ⚪ Minimal · up to 97fc8

The timeline navigation and context-menu behavior have no verified merge-blocking issues.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the issue and the main change: adding timeline keyboard navigation.
Description check ✅ Passed The description explains the motivation, implementation, routing behavior, navigation order, and completed checklist items. The Testflow QA checkbox is not selected, but this is a non-critical omissio…
Linked Issues check ✅ Passed PR #11367 requirements are implemented. ProjectPage.qml adds TimelineSection after AddNewTrackSection and before the remaining navigation sections. TracksItemsView.qml and Timeline.qml conne…
Out of Scope Changes check ✅ Passed The reviewed changes stay within PR #11367. The shortcut rename, global context-menu routing, timeline navigation wiring, timeline context-menu handling, UI-context resolution, and related test includ…

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 timeline-keyboard-navigation branch from 181df3e to 97fc8d7 Compare September 14, 2026 09:11
@embarc-gabriel
embarc-gabriel requested a review from Eism September 14, 2026 09:12
@grliszas14
grliszas14 self-requested a review September 15, 2026 10:11
The timeline gets its own navigation section after the add-track
section, with a panel and a single control so it can be reached with
Tab and shows the focus border.

While the timeline section is active the UI context resolves to
project-focused, the same way it does for the track view, so Left and
Right resolve to play-position-decrease/increase and move the playhead.
Shift+F10 now triggers one global action, item-context-menu, declared
in appshell and routed by the active navigation section: the track view
forwards to track-view-item-context-menu, the timeline forwards to
timeline-context-menu. The trackedit action keeps its handler but is no
longer a user-facing shortcut.

TimelineContext registers timeline-context-menu, as it does for the
other timeline-scoped actions, and emits contextMenuRequested so the
ruler opens its menu.
@embarc-gabriel
embarc-gabriel force-pushed the timeline-keyboard-navigation branch from 97fc8d7 to 1f35ec8 Compare September 16, 2026 12:24
@embarc-gabriel
embarc-gabriel merged commit d0cc0ab into audacity:master Sep 16, 2026
10 checks passed
kryksyh added a commit that referenced this pull request Sep 22, 2026
11367 Timeline keyboard navigation (#12072)
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 timeline ruler into main keyboard navigation hierarchy

3 participants