> 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 one 
additional commit since the last revision:

  Also fix TextField.

-------------

Changes:
  - all: https://git.openjdk.org/jfx/pull/2363/files
  - new: https://git.openjdk.org/jfx/pull/2363/files/1a8f720c..ad4b11be

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jfx&pr=2363&range=02
 - incr: https://webrevs.openjdk.org/?repo=jfx&pr=2363&range=01-02

  Stats: 131 lines in 6 files changed: 71 ins; 56 del; 4 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

Reply via email to