Keyboard: Add-mode Shift-click keeps earlier areas; Dutch status labels

This commit is contained in:
Harrison Booth
2026-10-24 15:21:08 -05:00
parent fa17a79cba
commit 41a1a3f8bc
2 changed files with 9 additions and 1 deletions
+7 -1
View File
@@ -2492,8 +2492,14 @@ fn interact(app: &mut SheetApp, ui: &mut egui::Ui, resp: &egui::Response, geo: &
}
app.grid.last_click = Some((c, now));
if sel_mods.shift {
// Add mode keeps the areas already selected and drops only the provisional area it made itself.
let mut ranges = add_mode_base(app);
if app.grid.add_pending {
ranges.pop();
}
app.grid.add_pending = false;
let _ = app.session.run("selection.set", json!({"range": RangeRef::new(sel.anchor, c).a1(), "active": sel.active.a1()}));
ranges.push(RangeRef::new(sel.anchor, c).a1());
let _ = app.session.run("selection.set", json!({"range": ranges.join(","), "active": sel.active.a1()}));
if let Some(d) = app.session.active_mut() {
d.selection.anchor = sel.anchor;
}
+2
View File
@@ -278,6 +278,8 @@ pub(super) fn translate(text: &str) -> Option<&'static str> {
"Point" => "Aanwijzen",
"Calculate" => "Berekenen",
"Select destination and press Enter or choose Paste" => "Selecteer de bestemming en druk op Enter of kies Plakken",
"Extend Selection" => "Selectie uitbreiden",
"Add or Remove Selection" => "Selectie toevoegen of verwijderen",
"General" => "Algemeen",
"Number" => "Getal",
"Currency" => "Valuta",