Repository navigation
Fix default shortcuts - #12570
Fix default shortcuts#12570
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: 🔵 Low · up to
|
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ 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:
b2b2bf0e-cd96-4166-82e9-11eea229d366
📒 Files selected for processing: 8
src/app/configs/data/shortcuts.xmlsrc/projectscene/internal/projectsceneactionscontroller.cppsrc/projectscene/internal/projectscenecommandsregister.cppsrc/projectscene/internal/projectsceneuiactions.cppsrc/projectscene/itimelineviewcontroller.hsrc/projectscene/projectscenecommands.hsrc/projectscene/view/timeline/timelineviewcontroller.cppsrc/projectscene/view/timeline/timelineviewcontroller.h
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| <SC> | ||
| <key>timeline-page-left</key> | ||
| <seq>PgUp</seq> | ||
| </SC> | ||
| <SC> | ||
| <key>timeline-page-right</key> | ||
| <seq>PgDown</seq> | ||
| </SC> |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
-
🏁 Script executed:
set -e printf '%s\n' '--- changed shortcut context ---' git diff --no-ext-diff afd5b774b815ed53adfe30c582e7e087c7fb5651 86451e19cb79a5f4a043c28f68ccc1651d2e1933 -- src/app/configs/data/shortcuts.xml printf '%s\n' '--- action references ---' rg -n -F --glob '!build/**' --glob '!dist/**' -e 'timeline-page-left' -e 'timeline-page-right' -e 'page-left' -e 'page-right' -e 'PgUp' -e 'PgDown' au3 src | head -200
Repository: audacity/audacity
Length of output: 2834
🏁 Script executed:
set -e printf '%s\n' '--- UI action declarations ---' nl -ba src/projectscene/internal/projectsceneuiactions.cpp | sed -n '70,110p' printf '%s\n' '--- controller outline and relevant source ---' ast-grep outline src/projectscene/internal/projectsceneactionscontroller.cpp --view expanded nl -ba src/projectscene/internal/projectsceneactionscontroller.cpp | sed -n '1,240p' printf '%s\n' '--- command declarations and consumers ---' nl -ba src/projectscene/projectscenecommands.h | sed -n '1,80p' rg -n -F --glob '*.cpp' --glob '*.h' --glob '*.qml' \ -e 'PROJECTSCENE_TIMELINE_PAGE_LEFT_COMMAND' \ -e 'PROJECTSCENE_TIMELINE_PAGE_RIGHT_COMMAND' \ -e 'TIMELINE_PAGE_LEFT_CODE' \ -e 'TIMELINE_PAGE_RIGHT_CODE' \ -e 'timelinePage' -e 'pageLeft' -e 'pageRight' src/projectscene src | head -240
Repository: audacity/audacity
Length of output: 31841
🏁 Script executed:
set -e printf '%s\n' '--- timeline page methods ---' nl -ba src/projectscene/view/timeline/timelineviewcontroller.cpp | sed -n '1,100p' nl -ba src/projectscene/view/timeline/timelineviewcontroller.h | sed -n '1,90p' printf '%s\n' '--- directly bound timeline view and scroll APIs ---' rg -n -F --glob '*.cpp' --glob '*.h' \ -e 'void TimelineView::pageLeft' -e 'void TimelineView::pageRight' \ -e 'pageLeft()' -e 'pageRight()' -e 'scrollLeft' -e 'scrollRight' \ -e 'horizontalScroll' -e 'seek' -e 'playPosition' src/projectscene/view | head -300
Repository: audacity/audacity
Length of output: 11618
🏁 Script executed:
set -e printf '%s\n' '--- shiftFrameTime and frame accessors ---' rg -n -F -- 'TimelineContext::shiftFrameTime' 'TimelineContext::frameStartTime' 'TimelineContext::frameEndTime' src/projectscene/view/timeline/timelinecontext.cpp nl -ba src/projectscene/view/timeline/timelinecontext.cpp | sed -n '240,310p' nl -ba src/projectscene/view/timeline/timelinecontext.cpp | sed -n '1180,1270p' printf '%s\n' '--- declarations and related position state ---' rg -n -F -- 'shiftFrameTime' 'frameStartTime' 'frameEndTime' 'm_frameStartTime' 'm_frameEndTime' src/projectscene/view/timeline/timelinecontext.h src/projectscene/view/timeline/timelinecontext.cpp
Repository: audacity/audacity
Length of output: 567
🏁 Script executed:
set -e printf '%s\n' '--- shiftFrameTime implementation ---' rg -n -F -- 'void TimelineContext::shiftFrameTime' src/projectscene/view/timeline/timelinecontext.cpp nl -ba src/projectscene/view/timeline/timelinecontext.cpp | sed -n '460,515p' printf '%s\n' '--- frame accessors and declarations ---' rg -n -F -e 'frameStartTime' -e 'frameEndTime' -e 'shiftFrameTime' src/projectscene/view/timeline/timelinecontext.cpp src/projectscene/view/timeline/timelinecontext.h
Repository: audacity/audacity
Length of output: 10537
Bind PgUp and PgDown to seek actions, not timeline-page actions.
The current actions shift the viewport by one screen width. They do not change the playback position required by issue #11192. The viewport shift is bounded, but this does not provide bounded seeking.
| CommandInfo{ | ||
| PROJECTSCENE_TIMELINE_PAGE_LEFT_COMMAND, | ||
| TranslatableString("command", "Scroll timeline left one page"), | ||
| TranslatableString("command_description", "Scroll the timeline left by one screen width"), | ||
| InputSchema(), | ||
| Decoration() | ||
| }, | ||
| CommandInfo{ | ||
| PROJECTSCENE_TIMELINE_PAGE_RIGHT_COMMAND, | ||
| TranslatableString("command", "Scroll timeline right one page"), | ||
| TranslatableString("command_description", "Scroll the timeline right by one screen width"), | ||
| InputSchema(), | ||
| Decoration() | ||
| }, |
There was a problem hiding this comment.
lets add translators comments:
//: Command title: shown as a menu item or a button label; keep it short
//: Command description: shown as a tooltip; can be a full sentence
86451e1 to
6bf6dbf
Compare
Keep default shortcut work separate from menu mnemonics. PR audacity#12570 now covers overlapping trim, selection and zoom bindings. Assisted-by: OpenAI Codex
- 12150 - 12149 - 11866
6bf6dbf to
a2c3ede
Compare
Resolves: #11192
Resolves: #11866
Resolves: #12149
Resolves: #12150
Recommended: