When you have a text phrase, you probably know that you can double-click on any word to select it. It's very convenient and personally, I use it a lot.
To have a bit of background, I also want to share my inspiration for this issue. It is inspired by the xkcd comic # 2109 which, as explained in the corresponding community wiki, makes fun of a different type of accidental selection errors.
The "solution" of the error presented here could for example be the famous double-click to select a word. (There are hints that this may have also chosen the next space in recent years, but today it does not seem to behave any more, at least as far as I could to see him.)
Now what happens if i double-click on a space instead of a word? Or, what should happen to UX?
IMHO is something that can only happen accidentally, but it's another debate that I do not want to start at the moment. At least that is what happened to me personally. So I would say that users can usually choose the word before or after the text and are a little "disabled" with their cursor.
How applications are currently processing it
I have a little studied how other applications do it. Here are my conclusions:
- The simple way (for example, gedit, Chrome / ium, GNOME terminal): just select the space.
<img src = "https://i.stack.imgur.com/i23Fl.png" alt = "phrase.
- Like LibreOffice Writer: (seems) always select the next word.
<img src = "https://i.stack.imgur.com/aCDKM.png" alt = "phrase.
Firefox: Select previous and next wordHowever, punctuation is also processed and selected as a "word".
<img src = "https://i.stack.imgur.com/HHomom.png" alt = "on
<img src = "https://i.stack.imgur.com/IbGmi.png" alt = "other
Other possibilities that I can see:
- Choose a word randomly On the basis of the idea, clicking on the space was still an error.
- Approximate word to select according to the point of click Based on the same idea, but a more consistent result based on where you clicked, can be a very tiny calculation, however, but for more spaces or tabs, this might be useful.
- Do nothing at all, that is, not selecting anything because you think this is a mistake by the user.