The issue with the announcement of the custom spin boxes is that the text field 
inside when the value is being changed by the spinbox data model generates some 
events that are being interpreted by the accessibility subsystem as if text is 
being actively edited and the system tries to announce it accordingly. In order 
to stop it from happening we are going to generate correct events and 
temporarily suppress the text field's methods that reporting the 
editing-related changes until the actual editing is happened.

Make embedded text field not to generate random edit-related events;
Add manual test case;

-------------

Commit messages:
 - Remove whitespaces
 - 8286258: [Accessibility,macOS,VoiceOver] VoiceOver reads the spinner value 
wrong and sometime partially

Changes: https://git.openjdk.org/jdk/pull/29235/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29235&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8286258
  Stats: 141 lines in 4 files changed: 136 ins; 1 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/29235.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29235/head:pull/29235

PR: https://git.openjdk.org/jdk/pull/29235

Reply via email to