United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7124306 [macosx] VoiceOver cursor not on currently focused object when app gets focus
JDK-7124306 : [macosx] VoiceOver cursor not on currently focused object when app gets focus

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-03-23
Project Name:
JDK
Resolved Date:
2012-03-23
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4 (b11)

Related Reports
Duplicate:

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-628 submitted 2011/11/02 by Pete Brunet

.SUMMARY
VoiceOver cursor not on currently focused object when app gets focus
.STEPS TO REPRODUCE
1. Start VoiceOver (Command F5), using default settings, e.g. the VO cursor tracking the focused control.
2. cd ~/OpenJDK/macosx-port/build/macosx-universal/
3. bin/java -jar /Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar
.RESULTS
When SwingSet2 starts VO reads "close button" rather than the button which has focus (the first toolbar button, or where focus is if focus was moved away from and back to SwingSet2).
.VERSION
OS:
OSX 10.7.2
Java: 
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-petebrunet_2011_10_08_00_36-b00)
OpenJDK 64-Bit Server VM (build 21.0-b17, mixed mode)
.REGRESSION
Provide information on steps taken to isolate the problem.
Describe circumstances where the problem occurs or does not occur,
such as software versions and/or hardware configurations.
.NOTES
Attach any relevant screen shots, crash logs, or console output.
Describe anything else that might be useful in resolving the problem,
such as leads on diagnosis, any workarounds, or first observed configuration.

                                    

Comments
EVALUATION

Author: Pete Brunet Date: 06/Dec/11 02:04 AM
An alternative set of instructions that assumes Java is not yet installed...
1. Download and install the latest driver: <span class=&quot;nobr&quot;><a href=&quot;http://jdk7.java.net/macportpreview/&quot;>http://jdk7.java.net/macportpreview/<sup><img class=&quot;rendericon&quot; src=&quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span>
2. Start VoiceOver (Command F5), using default settings, e.g. the VO cursor tracking the focused control.
2. cd /Library/Java/JavaVirtualMachines/JDK\ 1.7.0\ Developer\ Preview.jdk/Contents/Home/
3. bin/java -jar /Library/Java/Demos/JFC/SwingSet2/SwingSet2.jar
                                     
2011-12-23
SUGGESTED FIX

A fix that has been tested is located here:
http://cr.openjdk.java.net/~ptbrunet/7124306/webrev/

The fix is for this file:
- JavaAccessibilityUtilities.m

These two files only have changes to comments:
- CGraphicsDevice.m
- CMenuItem.m

The webrev also contains the fix for 7124303 which has already been pushed so the patch to these two files can be ignored:
- AWTView.m
- JavaComponentAccessibility.m
                                     
2012-01-18



Hardware and Software, Engineered to Work Together