Question: bidi navigation

Andy Goryachev andy.goryachev at oracle.com
Wed Oct 11 22:12:13 UTC 2023


Hi.

I have a question for people who routinely use right-to-left RTL languages (Arabic, Hebrew, etc.):

What is your expectation for navigating text using left/right arrow keys when the text contains a mixture of RTL and LTR?

It looks like there is no standard when it comes to modern applications – see a small sample:
https://gist.github.com/andy-goryachev-oracle/4802f9380fb03ec2be7ac36bd98a2059

In javafx, the navigation of bidirectional (bidi) text might have been broken sometime after jfx8, and even jfx8 might have issues, see
https://bugs.openjdk.org/browse/JDK-8296266

It looks like the most modern applications use logical navigation and logical selection (that is, when navigating using left/right arrow keys, the cursor position reflects previous/next insertion indexes in the text, rather than visual position).  This causes the cursor to change the direction of movement when it crosses the bidi boundary.  Would you say this is the expected behavior?

Thank you
-andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20231011/fee53c29/attachment.htm>


More information about the openjfx-dev mailing list