| Ticket UUID: | 542199 | |||
| Title: | entry widget: Dclick on character selection problem | |||
| Type: | Bug | Version: | obsolete: 8.4.5 | |
| Submitter: | mdejong | Created on: | 2002-04-10 22:14:32 | |
| Subsystem: | 07. [entry] | Assigned To: | fvogel | |
| Priority: | 6 | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2015-11-08 21:52:51 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2015-11-08 21:52:51 | |||
| Description: |
The bug was originally part of 220943. A number of problems were created by an earlier change. The problem described as (2) was not caused by the modification and so it has been extracted into this bug report. Test cases and the proposed patch have been added here. It is included here. (2) Double-click on the "c" in the first line, near its RIGHT edge. The "c" becomes selected, as it should. Now, double-click on the "c" near its LEFT edge, keeping the button down after the second click. The space to the left of the "c" is selected, not the "c" itself. Now, move the mouse by ONE PIXEL in any direction. The "ab" becomes selected as well. ... The behavior described in (1) and (2) is obviously incorrect. (In the case of clicking on the "c" near its left edge, you might argue that you are effectively clicking on the gap between the space and the "c" and that therefore it is not necessarily incorrect for the space to be the thing selected; but it certainly is counterintuitive, since one expects the letter clicked on to be part of the selected text.) | |||
| User Comments: |
fvogel added on 2015-11-08 21:52:51:
Merged to core-8-5-branch and trunk. fvogel added on 2015-11-03 10:49:08: Proposed fix for entry widget part (and final part) of this ticket, see branch bug-542199fff. Now double click on a lone character in an entry works (whether the mouse is close to the left edge of the character, or to its right edge). Note that the double click behavior to select words is slightly different between the text widget and between the entry widget. After selection of the word "under the mouse", the insertion cursor is placed at selection END for the entry, and at selection START for the text widget. This looks intentional in the source code therefore I did not change this. vincentdarley added on 2003-11-14 01:26:33: Logged In: YES user_id=32170 Fixed the text widget problem, although the same issue still exists for the entry widget (which I'm not familiar with). Marked the entry-widget test as knownBug for that reason. See the last knownBug in event.test for details. mdejong added on 2002-04-11 05:16:30: File Added - 20941: event.patch mdejong added on 2002-04-11 05:14:32: File Added - 20940: text.patch | |||
Attachments:
- event.patch [download] added by mdejong on 2002-04-11 05:16:30. [details]
- text.patch [download] added by mdejong on 2002-04-11 05:14:32. [details]
