8283404: [macos] a11y : Screen magnifier does not show JMenu name#13271
8283404: [macos] a11y : Screen magnifier does not show JMenu name#13271kumarabhi006 wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back abhiscxk! A progress list of the required criteria for merging this PR into |
|
@kumarabhi006 The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
Webrevs
|
| "1) Enable Screen magnifier on theMac \n\n" + | ||
| "System Preference -> Accessibility -> Zoom -> " + | ||
| "Select ( Enable Hover Text) \n\n" + | ||
| "2) Run with -Djavax.accessibility.screen_magnifier_present=true" + |
There was a problem hiding this comment.
What the user should "Run" at this step?
There was a problem hiding this comment.
This step is not required. Copy+paste mistake from JBS description.
I will update the test instruction.
There was a problem hiding this comment.
What the user should "Run" at this step?
Updated the test instruction.
|
@kumarabhi006 This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 30 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit ecec611.
Your commit was automatically rebased without conflicts. |
|
@kumarabhi006 Pushed as commit ecec611. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
It seems that the accessibility role returned by the MenuAccessibility class is not correct for top level menu.
Added a condition check to return the accessibility role as
NSAccessibilityMenuBarItemRolein stead ofNSAccessibilityMenuRolefor top level menu whose parent ismenubar.The solution works correctly for screen magnifier as well as voice over.
A manual test case is added to verify the fix.
Note: Tried implementing few a11y methods to fix but for top level menu with
NSAccessibilityMenuRoledoesn't return the a11y label.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/13271/head:pull/13271$ git checkout pull/13271Update a local copy of the PR:
$ git checkout pull/13271$ git pull https://git.openjdk.org/jdk.git pull/13271/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 13271View PR using the GUI difftool:
$ git pr show -t 13271Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/13271.diff