Repository navigation
Issue #1759: Cmd+D (Select None) deselects every photo, the active one too - #1760
Merged
emmertex merged 6 commits intoDec 1, 2026
Merged
Conversation
Select None kept the active photo selected, so Cmd+D did the same as Select Only Active Photo. It now leaves nothing selected and no active photo, so the arrow keys start again from the view's ends. Manual: reference/shortcuts (no edit: the Deselect All row already describes it) Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The Edit menu's Select None item shows the key that works, Cmd+D, and not the engine's declared Cmd+Shift+A (which only the Alternative set uses). Manual: reference/shortcuts (no edit: the Deselect All row already lists Ctrl+D) Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…oupedeck DeselectOtherPhotos mapping With no flagged photo in the selection, library.deselectUnflagged now leaves nothing selected and no active photo, as Select None does. The Loupedeck DeselectOtherPhotos action (Select Only Active Photo) no longer maps to library.selectNone, which now clears the active photo. Cold grader: pass, no Must fix. Manual: none, no page describes either command or the Loupedeck action Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… the view Manual: none, test only Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
emmertex
requested changes
Dec 1, 2026
emmertex
left a comment
Owner
There was a problem hiding this comment.
Thanks — the fix and tests look right to me (engine change is small, no panic paths, Loupedeck mapping change and changelog entry make sense).
One thing missing before it can merge:
- What's New entry: AGENTS.md (Release notes) asks for one file per change in
docs/whats-new/<YYYY-MM-DD>-<slug>.md(one### Title+ bullets, seedocs/whats-new/README.md), in addition to the changelog entry. Something likedocs/whats-new/2026-12-01-cmd-d-select-none.mdwith a user-facing line about Select None now clearing the active photo too.
Once that's pushed and CI is green this is good to merge.
Manual: none, no page describes these commands Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
12 of 13 tasks
emmertex
approved these changes
Dec 1, 2026
emmertex
left a comment
Owner
There was a problem hiding this comment.
Thanks — the What's New entry is in, and the fix and tests look good. Merging.
Nit for a later change (not blocking): the Loupedeck DeselectOtherPhotos action could map to library.selectOnlyActive rather than being dropped, since that is now the matching command.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1759
Problem
Cmd+D (Select None in the Edit menu) left the active photo selected, so it did the same as Cmd+Shift+D (Select Only Active
Photo). After it, the arrow keys still stepped from that photo instead of starting again from the first or last photo of
the view.
Cause:
library.selectNoneincrates/engine/src/cmd/library.rsset the selection to the active photo(
a.into_iter().collect()).Change
library.selectNoneclears the selection, the active photo, the active mask and spot, andall_selected. Nothing isselected and no photo is active afterwards, so ↑ and ↓ start again from the first and last photo of the view.
library.deselectUnflaggeddoes what its name says: with no flagged photo in the selection it also deselects the activephoto (before, it kept it). Its description says so.
DeselectOtherPhotos(Select Only Active Photo) no longer maps tolibrary.selectNone. It islisted as dropped when a profile is imported, like other actions with no counterpart.
Not in this PR: the Modern layout keeps its own label and key for the command (Deselect All, Cmd+Shift+A). Select
Only Active Photo is a UI-only command, so surfaces can't reach it; the Loupedeck action stays unmapped.
Acceptance criteria
shortcuts::tests::select_none_clears_every_selected_photo_and_the_active_photo(seen failing before the fix)shortcuts::tests::select_none_with_one_photo_selected_leaves_nothing_selected(seen failing before the fix)shortcuts::tests::select_none_with_nothing_selected_does_nothing_and_raises_no_error(guard: passes before and after the fix)shortcuts::tests::select_only_active_still_keeps_only_the_active_photo(guard: passes before and after the fix)shortcuts::tests::after_select_none_the_up_arrow_takes_the_first_photo_of_the_viewand…_the_down_arrow_takes_the_last_photo_of_the_view(both seen failing with the engine fix reverted)shortcuts::tests::select_none_is_listed_as_cmd_d_in_the_classic_set(guard: the Classic set already bound Cmd+D)How it was checked
cargo xtask ci --quick,cargo xtask silandcargo test -pfor the touched crates pass on this branch, up todate with
staging(merged in, not rebased)ci --quick, parity, layers, assets, deny, wasm, android); the branch is 5 commits behindstaging(one of them touches
shortcuts.rs, elsewhere in the file) and merges cleanly. Two engine tests (device_sync,tests_export) fail on this Mac only, as alreadyrecorded.
Merging
library.rsis thestaging→mainbatch PR Nightly: staging → main 2026-12-01 #1733).unsafe, build scripts, network access, spawned processes, deleted files, CI orxtaskgatechanges: none (see Runs on CI).
Runs on CI
Nothing beyond the touched crates' own tests (
lcc-engine,lcc-ui-egui,lcc-surface); no workflow, build-script,packaging or dependency changes.
Checklist
unwrap/expect/panic!, no indexing or unchecked arithmetic on anumber from a file, a person or an agent (
get,checked_mul, NaN and char boundaries handled)active-photo behaviour, Deselect Unflagged Photos or the Loupedeck action
Manual: none, no page describes these commands or the Loupedeck action.
Sources: own design.
🤖 Generated with Claude Code