JDK-8342233 : Regression: TextInputControl selection is backwards in RTL mode
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx23
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-10-15
  • Updated: 2025-01-08
  • Resolved: 2025-01-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx24 masterFixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Description
When using mouse to select text in RTL mode the selection is shown backwards.

Also, the keyboard navigation with LEFT_ARROW/RIGHT_ARROW keys is broken (I think it has the same root cause as https://bugs.openjdk.org/browse/JDK-8296266 TextArea: Navigation breaks with RTL text).

To reproduce using the Monkey Tester:
1. select TextArea (also reproducible with TextField or PasswordField pages)
2. set Node.nodeOrientation property no RIGHT_TO_LEFT
3. type in some text
4. try to navigate the text using LEFT/RIGHT arrow keys
5. try to select text with the mouse

Observe:
in step 4, the caret moves erratically
in step 5, the selection goes backwards relative to the mouse movement

edit 2024/11/20:
A headful test for RTL orientation is blocked by https://bugs.openjdk.org/browse/JDK-8189167
Comments
Changeset: 98916fee Branch: master Author: Andy Goryachev <angorya@openjdk.org> Date: 2025-01-06 16:47:47 +0000 URL: https://git.openjdk.org/jfx/commit/98916feed6a9ff4da63ff778fdb0336d43ffaca8
06-01-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1609 Date: 2024-10-25 22:00:37 +0000
23-11-2024