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.

Say why a copy is announced as it really is

Țugui Dragoș7318513f7235
diff --git a/Peel/Views/CopyButton.swift b/Peel/Views/CopyButton.swift
index 0ea763df..19b20f98 100644
--- a/Peel/Views/CopyButton.swift
+++ b/Peel/Views/CopyButton.swift
@@ -18,7 +18,7 @@ struct CopyButton: View {
// The button exists to say the copy took, so it says so only when the pasteboard agrees.
NSPasteboard.general.clearContents()
copies = NSPasteboard.general.setString(text, forType: .string) ? copies + 1 : 0
- // VoiceOver hears it too, since the word that changes is not where its cursor is.
+ // VoiceOver does not read a title that changes under its cursor, so the copy is announced as well.
if hasCopied {
AccessibilityNotification.Announcement(AttributedString(localized: "Copied")).post()
}