| Ticket UUID: | d94a3c7b4231fa374cc5e6cc8c5605cbc9693972 | |||
| Title: | Selection by words: difference between mouse selection & keyboard selection | |||
| Type: | Bug | Version: | v9.0.1 | |
| Submitter: | EricBrunel | Created on: | 2025-06-06 12:40:21 | |
| Subsystem: | 18. [text] | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Open | Last Modified: | 2025-07-17 08:08:19 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
I noticed a difference when selecting words with the mouse and selecting words using the keyboard in the text widget: according to the documentation, "Double- clicking with mouse button 1 selects the word under the mouse" (that's in the "text" documentation, in the "Bindings" section, item number 2. And also, "Control-Shift-Left and Control-Shift-Right move the insertion cursor by words and also extend the selection" (same section, item number 9). Now if in a text widget, I enter the text "foo.bar", if I double-click on "foo" or "bar", it selects the word "foo", or the word "bar" respectively. But now, if I put the insertion point right after "bar" and press Control+Shift+Left, it selects "foo.bar", as if "foo.bar" was a single word. The same happens if I put the insertion point just before "foo" and press Control+Shift+Right: it selects "foo.bar", not just "foo". This is quite confusing to have two different concepts of words when selecting text differently, it would be better to use the same concept all the time, that would be much less confusing. I saw this behavior in the text widget, but it seems to happen in entries too. | |||
| User Comments: |
jan.nijtmans added on 2025-07-17 08:08:19:
I can reproduce this on Windows EricBrunel added on 2025-06-30 07:29:43: My bad, looks like I entered the ticket too quickly: I've tested on both Linux and Windows and I'm getting the same inconsistent behavior. I indeed didn't test on macOS, maybe it's different there. And I also forgot the added Shift to actually select the text, and not only move the insertion point. I'm adding it back in the ticket text. But without shift, the problem is the same: the insertion point moves as if " Anyway, thanks for the answer. jan.nijtmans added on 2025-06-27 16:29:34: > But now, if I put the insertion point right after "bar" and press Control+Left, it selects "foo.bar", as if "foo.bar" was a single word. The same happens if I put the insertion point just before "foo" and press Control+Right: it selects "foo.bar", not just "foo" I tried to reproduce this on MacOS (which uses "Option" in stead of "Control"). If I put the insertion point just after "bar" and press Option+Left, the cursor moves to the "b" from "bar", which is as I expect. Similar with Option+Right as in your example: The insertion point moves to the "b" from "bar" too. I will try it on Windows and Linux too, but on MacOS everything looks OK to me. B.T.W. "selection" only happens in combination with the Shift-key, so something is missing in your description. Either no "selection" happens, or you use the Shift-key too. | |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki