JDK-8372053: RichTextArea keyboard navigation for RTL paragraph should be the opposite
Fouad Almalki
engineer.fouad.a at gmail.com
Wed Nov 19 01:17:37 UTC 2025
Hi,
I am the original reporter of the bug JDK-8372053. The issue I was
referring to was with the incubator RichTextArea not the regular TextArea.
The issue happens when the RichTextArea's node orientation is default (LTR)
but the paragraph is right-aligned (TextAlignment.RIGHT and
ParagraphDirection.RIGHT_TO_LEFT) with RTL text.
Current behavior is: RIGHT moves caret forward, and LEFT moves caret
backward.
Expected behavior is: LEFT moves caret forward, and RIGHT moves caret
backward.
Also, currently the text selection of 2 lines of RTL text (does not matter
aligned to left or right) is a little buggy. When positioning the caret at
the start of second line, then pressing Shift+LEFT:
Current behavior is: both lines will be highlighted and the caret will be
at the end of the first line (wrong highlight but correct caret position).
If pressing Shift+LEFT again, both lines will still be highlighted and the
caret will be at the end of the first line - 1 (again, wrong highlight but
correct caret position).
Expected behavior is: The text highlight should be synced with the caret
position.
I also reported 2 more issues last week but did not appear yet on
bugs.openjdk.org.
Best Regards~
Fouad almalki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20251119/5244f049/attachment.htm>
More information about the openjfx-dev
mailing list