On Mon, 12 Oct 2026 06:42:39 GMT, Robert Lichtenberger <[email protected]> 
wrote:

>> I sort of agree with the sentiment, though this will probably never fly 
>> because that will introduce a change in the behavior (unless it's clearly a 
>> bug).
>> 
>> Looking at MS Word over the years, it seems they also slowly converging to a 
>> single behavior across the platforms, so perhaps we need to initiate a 
>> discussion in the mailing list.
>
> The fact that double clicking on a word will select the word plus a space 
> character behind that word is (to me) clearly a bug. To be sure I checked 
> some Windows Software on Windows 11
> * Notepad
> * LibreOffice
> * Our very own synedra View that is using Qt 6
> * Microsoft Edge
> * Firefox
> Only the browsers in their textarea have this kind of behavior.

Did a little research to see where this comes from: It looks like it was 
introduced in the '90ies of the last century (The Windows Interface Guidelines 
-- A Guide for Designing Software). And the rationale behind it is that in word 
processor settings (which TextArea is not, IMHO) it is advantageous to select 
the word plus the space behind it so that when the user wants to delete or move 
(drag & drop) no double space characters remain.
If we want to keep this behavior, the algorithm sketched above will clearly not 
be sufficient.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/2334#discussion_r4245334350

Reply via email to