Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Return closes the alert that says what could not be moved

Țugui Dragoșf3f16510ae64
diff --git a/Peel/Views/RemovalFailureAlert.swift b/Peel/Views/RemovalFailureAlert.swift
index 6b145020..7fbb35d3 100644
--- a/Peel/Views/RemovalFailureAlert.swift
+++ b/Peel/Views/RemovalFailureAlert.swift
@@ -23,7 +23,10 @@ struct RemovalFailureAlert: ViewModifier {
if !outcome.failures.isEmpty {
Button("Copy Details") { copyDetails() }
}
+ // The alert reports, so Return closes it. Otherwise the first other button would be the default, and Return
+ // would copy the details or open Settings.
Button("OK", role: .cancel) {}
+ .keyboardShortcut(.defaultAction)
} message: {
Text(verbatim: message)
}