From 0127e7b47e67ef244cd6bed1d97f7c9e0b4f1889 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 20 Nov 2026 08:44:26 -0500 Subject: [PATCH] Supply held modifiers in polyline test clicks --- crates/ui-egui/tests/it/comments.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/tests/it/comments.rs b/crates/ui-egui/tests/it/comments.rs index f70c40ad6f..c7a2e65682 100644 --- a/crates/ui-egui/tests/it/comments.rs +++ b/crates/ui-egui/tests/it/comments.rs @@ -1205,8 +1205,9 @@ fn shift_holds_new_lines_and_sides_level_or_plumb() { h.set_option("quick", "polyline").unwrap(); click_pt(&mut h, (20.0, 20.0)); shift(&mut h, true); - click_pt(&mut h, (90.0, 30.0)); - click_pt(&mut h, (95.0, 80.0)); + // Pointer events carry the modifier held at each press, as real input does. + click_pt_with(&mut h, (90.0, 30.0), egui::Modifiers::SHIFT); + click_pt_with(&mut h, (95.0, 80.0), egui::Modifiers::SHIFT); shift(&mut h, false); click_pt(&mut h, (130.0, 60.0)); h.key_press(egui::Key::Enter);