On Wed, 30 Sep 2026 13:58:03 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). This pull request has now been integrated. Changeset: a6f8d0ba Author: Robert Lichtenberger <[email protected]> Committer: Andy Goryachev <[email protected]> URL: https://git.openjdk.org/jfx/commit/a6f8d0ba4240bc0e60d546524e6acf53a7bb6d44 Stats: 127 lines in 4 files changed: 125 ins; 0 del; 2 mod 8264588: Double clicking a word in TextArea selects wrong word Reviewed-by: angorya, mhanl ------------- PR: https://git.openjdk.org/jfx/pull/2334
