RFR: 8277369: Strange behavior of JMenuBar with RIGHT_TO_LEFT orientation, arrow keys behaves opposite traversing through keyboard [v3]

Phil Race prr at openjdk.java.net
Mon Feb 14 20:59:08 UTC 2022


On Mon, 14 Feb 2022 07:37:47 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> 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.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix

Seems to me right should move right and left move left, so OK by me but
I'd like to make sure this is seen by @naotoj too.

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

Marked as reviewed by prr (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/7396



More information about the client-libs-dev mailing list