On Wed, 21 Jan 2026 20:00:48 GMT, Alexander Zuev <[email protected]> wrote:
>> src/java.desktop/macosx/native/libawt_lwawt/awt/a11y/SpinboxAccessibility.m
>> line 89:
>>
>>> 87: if ([child
>>> conformsToProtocol:@protocol(NSAccessibilityNavigableStaticText)]) {
>>> 88: NSAccessibilityPostNotification(child,
>>> NSAccessibilityLayoutChangedNotification);
>>> 89: NSAccessibilityPostNotification(child,
>>> NSAccessibilityAnnouncementRequestedNotification);
>>
>> I assume this line is not necessary,
>> `NSAccessibilityAnnouncementRequestedNotification` is used to make VoiceOver
>> announce an arbitrary string, which would be passed in `userInfo` argument
>> for `NSAccessibilityPostNotificationWithUserInfo`.
>
> I added it just to ping the a11y subsystem in non-disruptive manner, if i
> remember correctly without this notification rapid change back and forth
> resulted in not announcing the last selected value. Let me try to remove it
> and re-test.
Ok, i removed the second notification and it seems to work fine, looks like the
glitch with fast switching was due to my previous version of the announcement
suspension, i fixed it at the same time i added the second notification i
thought that second notification was what corrected it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29235#discussion_r2714191282