8277369: Strange behavior of JMenuBar with RIGHT_TO_LEFT orientation, arrow keys behaves opposite traversing through keyboard#7396
Conversation
|
👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
|
||
| static volatile boolean passed = false; | ||
|
|
||
| public static void main(String[] args) throws Exception { |
There was a problem hiding this comment.
The submitter said that he use the native L&F should not we check it in the test?
There was a problem hiding this comment.
Might as well. Added L&F iteration in the test.
|
@prsadhuk 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 121 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 |
|
Caret should move visually, so VK_RIGHT should move it to the right. Fine by me. |
|
BTW I was just looking around and if you do a google search on "rtl arrow key backward" it looks to me as if multiple unrelated open source projects happen to have had the same issue (not SFAICT Java based) and came to the same conclusion. |
|
/integrate |
|
Going to push as commit 379fd85.
Your commit was automatically rebased without conflicts. |
After applying setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT) to the JMenuBar the arrow keys started to behave the opposite of what expected. Right arrow goes left and Left arrow goes right when trying to traverse through keyboard.
Fixed to reverse the direction traversal for RTL orientation.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7396/head:pull/7396$ git checkout pull/7396Update a local copy of the PR:
$ git checkout pull/7396$ git pull https://git.openjdk.java.net/jdk pull/7396/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7396View PR using the GUI difftool:
$ git pr show -t 7396Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7396.diff