diff --git a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch index 748d430..edf419e 100644 --- a/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch +++ b/patches/0008-ns-announce-child-frame-completion-candidates-for-Vo.patch @@ -496,7 +496,7 @@ index c9fe93a57b..f7574efb39 100644 + if (![candidate isEqualToString: + self.cachedCompletionAnnouncement]) - { -+ { ++ { - /* Deduplicate: only announce when the candidate changed. */ - if (![candidate isEqualToString: - self.cachedCompletionAnnouncement]) @@ -519,25 +519,25 @@ index c9fe93a57b..f7574efb39 100644 - NSAccessibilityAnnouncementRequestedNotification, - annInfo); - } -+ self.cachedCompletionAnnouncement = candidate; ++ self.cachedCompletionAnnouncement = candidate; + -+ /* Announce the candidate text directly via NSApp. -+ Do NOT post SelectedTextChanged --- that would cause -+ VoiceOver to read the AX text at the cursor position -+ (the minibuffer input line), not the overlay candidate. -+ AnnouncementRequested with High priority interrupts -+ any current speech and announces our text. */ -+ NSDictionary *annInfo = @{ -+ NSAccessibilityAnnouncementKey: candidate, -+ NSAccessibilityPriorityKey: -+ @(NSAccessibilityPriorityHigh) -+ }; -+ ns_ax_post_notification_with_info ( -+ NSApp, -+ NSAccessibilityAnnouncementRequestedNotification, -+ annInfo); ++ /* Announce the candidate text directly via NSApp. ++ Do NOT post SelectedTextChanged --- that would cause ++ VoiceOver to read the AX text at the cursor position ++ (the minibuffer input line), not the overlay candidate. ++ AnnouncementRequested with High priority interrupts ++ any current speech and announces our text. */ ++ NSDictionary *annInfo = @{ ++ NSAccessibilityAnnouncementKey: candidate, ++ NSAccessibilityPriorityKey: ++ @(NSAccessibilityPriorityHigh) ++ }; ++ ns_ax_post_notification_with_info ( ++ NSApp, ++ NSAccessibilityAnnouncementRequestedNotification, ++ annInfo); - } -+ } ++ } - } + } + }