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:
@@ -1136,6 +1136,47 @@ fn wire_layers_parts(
|
||||
redraw(&w);
|
||||
});
|
||||
}
|
||||
{
|
||||
// TRACES: FR-DEV-16 | FR-DEV-19a
|
||||
// The keyboard's turn of the join chip: the part the tools point at,
|
||||
// on the one layer being edited, one step round the chip's own cycle.
|
||||
// Nothing with several layers selected — a part belongs to one — and
|
||||
// nothing on the base part, which joins nothing.
|
||||
let weak = window.as_weak();
|
||||
let session = session.clone();
|
||||
let redraw = redraw.clone();
|
||||
window
|
||||
.global::<Masking>()
|
||||
.on_selected_part_join_cycled(move || {
|
||||
let Some(w) = weak.upgrade() else { return };
|
||||
{
|
||||
let mut slot = session.borrow_mut();
|
||||
let Some(s) = slot.as_mut() else { return };
|
||||
let [id] = s.active_masks() else { return };
|
||||
let id = id.clone();
|
||||
let index = s.active_part();
|
||||
if index == 0 {
|
||||
return;
|
||||
}
|
||||
let Some(join) = s
|
||||
.masks()
|
||||
.get(&id)
|
||||
.and_then(|l| l.part(index))
|
||||
.map(|p| p.join)
|
||||
else {
|
||||
return;
|
||||
};
|
||||
let at = dr_pipeline::mask::Join::ALL
|
||||
.iter()
|
||||
.position(|j| *j == join)
|
||||
.unwrap_or(0);
|
||||
let next = (at + 1) % dr_pipeline::mask::Join::ALL.len();
|
||||
s.set_mask_part_join(&id, index, next);
|
||||
}
|
||||
sync(&w, &session);
|
||||
redraw(&w);
|
||||
});
|
||||
}
|
||||
{
|
||||
let weak = window.as_weak();
|
||||
let session = session.clone();
|
||||
|
||||
Reference in New Issue
Block a user