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

macOS: selection irregularities in TextArea

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx20
    • javafx
    • None
    • macOS 13.3.1a

      A weird behavior of selection shape and selected text fill color can be seen in TextArea while selection using mouse (selection using keyboard is prevented by JDK-8296266), as can be seen in the attached video clip.

      To reproduce:
      - run MonkeyTester https://github.com/andy-goryachev-oracle/MonkeyTest , select TextArea page
      - select Text: 'Failed Nav Bug'
      - select Font: (blank) or System Regular
      - click on the first character (on the right) in the Arabic word العربية (\u0627\u0644\u0639\u0631\u0628\u064a\u0629)
      - drag the mouse to the left to select characters one by one

      Two things can be observed (referring to the steps 4 and 5 in the attached image):
      1. blue selection rectangle does not change
      2. inverted text selection color does change

      That is, text selection fill color decouples from the rectangular selection shape.

      The problem *might* be with the System font, setting another font (Tahoma, or Al Nile, Noto Sans Arabic Bold) fixes the issue.

      This issue is not reproducible on Windows.

        1. Screenshot 2023-08-22 at 14.58.39.png
          574 kB
          Andy Goryachev
        2. video1699704552.mp4
          806 kB
          Andy Goryachev
        3. Screenshot 2023-08-24 at 10.44.00.png
          30 kB
          Andy Goryachev
        4. TextArea_SelectionIrregularity_8314895.java
          2 kB
          Andy Goryachev

            prr Philip Race
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: