On Thu, 8 Oct 2026 11:53:57 GMT, Robert Lichtenberger <[email protected]>
wrote:
>> 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.
I would suggest that we will evaluate in a follow up. I think those characters
are very rarely used, so we probably should start somewhere (with this PR) and
gradually try to rule out all bugs?
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2334#discussion_r4218763205