mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-02 02:33:55 -06:00
Keyboard: Add-mode Shift-click keeps earlier areas; Dutch status labels
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user