On Sun, 29 Oct 2023 22:20:17 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> Please read [this 
>> document](https://gist.github.com/mstr2/9f46f92c98d3c86aa6a0b4224a9a6548) 
>> for an introduction to the Platform Preferences API, and how it interacts 
>> with the proposed style theme and stage appearance features.
>
> Michael Strauß has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   changed parameter name

Based on the language code, to be exact, and this is an *implementation 
detail(tm)*:


        return switch (locale.getLanguage()) {
            case "ar", "fa", "he", "iw", "ji", "ur", "yi" -> RIGHT_TO_LEFT;
            default -> LEFT_TO_RIGHT;
        };


so we'd need to invent something similar.  And even though we currently provide 
zero support for vertical text input or orientation, this might change in the 
future, at least an argument can be made from the API completeness perspective.

we also need to listen for input language changes at run time.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1014#issuecomment-1785971637

Reply via email to