Drive develop, the grid, the sidebar and People from the keyboard

An audit of every action by view against the keys the handlers bind left
develop without zoom, pan, fit or a way back to the grid, the grid without
select-none, thumbnail size or keywording, People with no key at all, and
the export and copy sheets without Enter. It also found the reverse gap
FR-UI-5 forbids: pick and reject had no route but P, X and U, and the
2026-09-19 amendment's judging in develop had not been built.

Develop: Ctrl+= and Ctrl+Plus zoom in and Ctrl+- out about the middle of the
view, Ctrl+0 fits and Ctrl+1 goes to 1:1, Shift and an arrow pan a magnified
view, G goes back to the grid, Ctrl+Y redoes, and Enter keeps a crop that hid
a mask. 0-5, P, X and U rate and flag the open photograph without moving on,
with stars and Pick/Reject in the top bar as the pointer and touch route.
= and - nudge the control last moved by a hundredth of its travel; the
framing sliders, perspective included, now count as "last moved", so R puts
them back as well. J turns the selected mask part's join chip.

Grid: Ctrl+D and Ctrl+Shift+A clear the selection, = and - resize the
thumbnails, Ctrl+K opens keywording, and Flag in the selection bar gives
pick and reject a pointer and touch route. Sidebar: Enter commits a
collection's name, and Enter or Escape hands the keyboard back to the grid,
where it used to go nowhere until something was clicked. People: Up and Down
walk the rail, F2 puts the name field under the keys, and Escape or Back now
leave the screen the way its back button does instead of doing nothing.
Sheets: Enter does what the export or copy sheet's button does.

The choices follow Lightroom where it has one. No new key steals typing: the
grid's and People's keys live on focus holders that are not ancestors of any
text field, and the sheets' Enter comes after a focused field has had it.
Every binding is tagged beside its handler, and the gate added in the
previous commit holds the two to each other.
This commit is contained in:
2026-09-24 23:42:26 -04:00
parent 9d1e31ffbb
commit d489a34190
15 changed files with 975 additions and 160 deletions
+42
View File
@@ -12,6 +12,7 @@ import { Develop } from "session.slint";
import { Transfer } from "adjust.slint";
import { Button, PanelHeading, Label, Value, Caption, Panel } from "widgets.slint";
import { Labels, LabelMark, LabelPicker } from "labels.slint";
import { StarStrip } from "library.slint";
// Status strip — surfaces the GPU backend and adapter, which matters during
// v0.1 because assumption A1 is exactly "does this compositing path work on
@@ -51,6 +52,13 @@ export component StatusBar inherits Rectangle {
/// Whether the label choices are open in the strip.
property <bool> picking-label: false;
callback label-picked(int);
/// TRACES: FR-UI-5 | FR-CULL-4
/// The open photograph's stars, or -1 where there is no library to hold
/// them, and its flag: 0 none, 1 pick, 2 reject.
in property <int> rating: -1;
in property <int> flag: 0;
callback rated(int);
callback flagged(int);
callback back-to-library();
callback open-people();
@@ -149,6 +157,40 @@ export component StatusBar inherits Rectangle {
}
}
// TRACES: FR-UI-5 | FR-CULL-4 | NFR-A11Y-3
// The judgement, shown and set on the photograph that is open — the
// pointer and touch half of the rating and flag keys, which a tablet
// has no number row for (FR-UI-5, amended 2026-09-19). The grid's own
// stars, so a rating looks the same in both places; the star already
// set clears it, as there.
StarStrip {
rating: max(0, root.rating);
show-empty: true;
can-trash: false;
visible: root.rating >= 0;
y: (parent.height - self.height) / 2;
rate(n) => { root.rated(n); }
}
// Pressed again, a flag comes off: two buttons that each toggle,
// rather than a third for "none" that is only ever pressed to undo
// one of the other two.
Button {
text: root.flag == 1 ? "Picked" : "Pick";
active: root.flag == 1;
visible: root.rating >= 0;
y: (parent.height - self.height) / 2;
clicked => { root.flagged(root.flag == 1 ? 0 : 1); }
}
Button {
text: root.flag == 2 ? "Rejected" : "Reject";
active: root.flag == 2;
visible: root.rating >= 0;
y: (parent.height - self.height) / 2;
clicked => { root.flagged(root.flag == 2 ? 0 : 2); }
}
Rectangle { horizontal-stretch: 1; }
// --- instrumentation lives in Settings now ------------------------