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.

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

Commit messages:
 - RTL Fix
 - RTL Fix
 - RTL Fix

Changes: https://git.openjdk.java.net/jdk/pull/7396/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=7396&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8277369
  Stats: 168 lines in 2 files changed: 167 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/7396.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/7396/head:pull/7396

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

Reply via email to