On Wed, 7 Oct 2026 06:29:48 GMT, Robert Lichtenberger <[email protected]> wrote:
>> As analysed in the bug, the previousWord() method does not work correctly if >> at the word boundary a character is found that is neither letter nor digit. >> This fix changes the method so that only ranges of whitespace will be >> skipped, resulting in correct word selection behaviour. >> A test case has been added to TextAreaTest. >> gradlew :controls:test --tests test.javafx.scene.control.Text*Test has been >> executed to ensure no regressions happen in other text related classes. No >> errors were reported. >> >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > 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") ------------- PR Review Comment: https://git.openjdk.org/jfx/pull/2334#discussion_r4212605694
