On Wed, 7 Oct 2026 22:20:51 GMT, Andy Goryachev <[email protected]> wrote:
>> Robert Lichtenberger has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> 8264588: Split test to cover current fix.
>
> modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java
> line 1758:
>
>> 1756: }
>> 1757: int c = Character.codePointAt(text, ix);
>> 1758: return Character.isWhitespace(c);
>
> question: how do we want to handle non-breaking characters (\u00a0, \u2007,
> \u202f)?
>
> For example, take this string: `aaa bbb` ("aaa\u00A0bbb")
Well it looks like Java does not consider these as Whitespace (e.g.
`Character.isWhitespace('\u2007')` gives `false`) and they are certainly not
part of a word. So the algorithm above would put them into the "other" category.
Clicking on `aaa\u00A0bbb` would select aaa or bbb or the single character in
between, depending on where the user clicks.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2334#discussion_r4218577897