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
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
- blocks
-
JDK-8343557 ☂ RTL Issues in Controls
- Open
- relates to
-
JDK-8189167 Text position of TextArea is wrong after resizing in RTL-oriented TextArea
- Open
-
JDK-8296266 TextArea: Navigation breaks with RTL text
- Open
-
JDK-8319844 Text/TextFlow.hitTest() is incorrect in RTL orientation
- Resolved
- links to
-
Commit(master) openjdk/jfx/98916fee
-
Review(master) openjdk/jfx/1609
(1 links to)