From 9824f49b06a1990f94f807f2dc303eb00a3e729c Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 16 Nov 2026 21:43:39 +0000 Subject: [PATCH] Crop overlay leaves Escape to the window while the frame is the untouched default --- crates/ui-canvas/src/canvas/crop/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-canvas/src/canvas/crop/mod.rs b/crates/ui-canvas/src/canvas/crop/mod.rs index 6127b5d77..ec7c19960 100644 --- a/crates/ui-canvas/src/canvas/crop/mod.rs +++ b/crates/ui-canvas/src/canvas/crop/mod.rs @@ -378,7 +378,8 @@ impl CropOverlay<'_> { if cx.intents().take(Intent::Submit) { self.report.apply = true; } - if cx.intents().take(Intent::Cancel) { + // Escape discards a started crop; the untouched default frame has nothing to discard and leaves it to the window. + if self.started(None) && cx.intents().take(Intent::Cancel) { self.report.discard = true; } // A hidden frame is not shown to move.