Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8342233

Regression: TextInputControl selection is backwards in RTL mode

XMLWordPrintable

    • b08
    • b24

      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

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: