> This patch provides a minimal solution to JDK-8393470 [TextInputControl] > double click on leading char selects wrong word. > It simply checks if the caret is already at the start of a word and in that > case it prevents the jumping to the start of the previous word. > > It takes the one scenario from testDoubleClickSelectsCharacterClassBlocks > that is fixed by the patch and moves it into a separate test method. > > The other scenarios from testDoubleClickSelectsCharacterClassBlocks are > removed, since they cannot be achieved without changing a lot of behavior and > the current behavior while not being _my_ favorite way can be argued as > "correct" in the absence of a formal specification. > > > --------- > - [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 two additional commits since the last revision: - Update modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextAreaBehavior.java Co-authored-by: Marius Hanl <[email protected]> - Update modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextAreaBehavior.java Co-authored-by: Marius Hanl <[email protected]> ------------- Changes: - all: https://git.openjdk.org/jfx/pull/2363/files - new: https://git.openjdk.org/jfx/pull/2363/files/7af78326..1a8f720c Webrevs: - full: https://webrevs.openjdk.org/?repo=jfx&pr=2363&range=01 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2363&range=00-01 Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod Patch: https://git.openjdk.org/jfx/pull/2363.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2363/head:pull/2363 PR: https://git.openjdk.org/jfx/pull/2363
