Crop overlay leaves Escape to the window while the frame is the untouched default

This commit is contained in:
aiongg
2026-11-16 21:43:39 +00:00
parent 9718d8cb0d
commit 9824f49b06
+2 -1
View File
@@ -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.