Integrated: 8277369: Strange behavior of JMenuBar with RIGHT_TO_LEFT orientation, arrow keys behaves opposite traversing through keyboard
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Feb 24 09:56:12 UTC 2022
On Wed, 9 Feb 2022 05:39:52 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.
This pull request has now been integrated.
Changeset: 379fd859
Author: Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/379fd85932e4b82e9a8e85f8ed8e63202f3cb9bc
Stats: 185 lines in 2 files changed: 184 ins; 0 del; 1 mod
8277369: Strange behavior of JMenuBar with RIGHT_TO_LEFT orientation, arrow keys behaves opposite traversing through keyboard
Reviewed-by: prr, naoto, serb
-------------
PR: https://git.openjdk.java.net/jdk/pull/7396
More information about the client-libs-dev
mailing list