JDK-8318840 : TextArea: should see a split caret
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: jfx21
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-10-25
  • Updated: 2024-11-04
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
tbdUnresolved
Related Reports
Blocks :  
Relates :  
Description
To reproduce using the MonkeyTester and an OS configured with RTL input:

- switch to the TextArea page
- change the node orientation to RTL (Window -> Orientation RTL)
- switch to RTL language input (Hebrew for example)
- type in some RTL text, then 123.  Notice there is no split caret.
- mouse click on where the caret is (leading edge of the leftmost digit)
- notice there is no split caret, and the caret did not move
- type some more RTL text

Expected: the text is expected to be inserted to the left of the digits.
Observed: the text is inserted to the right of the digits where no caret was present.


```
public class TextArea_RTL_8318840 extends Application {
    @Override
    public void start(Stage stage) throws Exception {
        TextArea textArea = new TextArea();

        Scene scene = new Scene(textArea);
        scene.setNodeOrientation(NodeOrientation.RIGHT_TO_LEFT);

        stage.setScene(scene);
        stage.setTitle("TextArea in RTL Mode");
        stage.show();
    }
}
```