This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2020年03月07日 05:08 by terry.reedy, last changed 2022年04月11日 14:59 by admin. This issue is now closed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 18859 | merged | terry.reedy, 2020年03月08日 18:57 | |
| PR 18860 | merged | miss-islington, 2020年03月08日 19:30 | |
| PR 18861 | merged | miss-islington, 2020年03月08日 19:30 | |
| PR 18951 | merged | terry.reedy, 2020年03月12日 03:52 | |
| PR 20522 | merged | miss-islington, 2020年05月29日 22:54 | |
| PR 20523 | merged | miss-islington, 2020年05月29日 22:54 | |
| PR 20524 | merged | miss-islington, 2020年05月29日 22:54 | |
| Messages (12) | |||
|---|---|---|---|
| msg363577 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年03月07日 05:08 | |
In text editors, right click commonly brings up a context menu, often including Cut, Copy, Paste, and Delete, with inapplicable entries grayed out. There are at least 2 'standard' behaviors (at least on Windows) with respect to the cursor and selections. 0 (Examples: Windows Notepad and Firefox entry box). The cursor stays where it is and a selection stays selected, even if one has scrolled the cursor and possible selection off the screen with mousewheel or scrollbar. Paste inserts at the possibly hidden cursor, deleting any possibly hidden selection. The view jumps back to the cursor after Paste but not after Copy and Close (Esc). 1 (Examples: Windows Notepad++ and Libre Office). The cursor jumps to the spot of the click, the same as with a left click. Any selection, possibly not visible, is unselected, the same as with a left click. Exception: a right click within an exception leaves the selection and cursor (at one of the ends) alone. IDLE follows a bit of each pattern and neither. Right click always moves the cursor, even within a selection, but never clears a selection. I believe that this is an accident of history. Originally, context menus only had 'Go to file/line' in Shell and grep output and 'Set/Clear Breakpoint' in editors. There was no reason to touch a selection even if the cursor was moved. Cut/Copy/Paste were added in 2012 because they are standard. To really be standard, right click should consistently act like left click and unselect. This prevents accidental deletion. This would also be consistent with making 'Go to line' act the same. Also, right click within a selection should not move the cursor. |
|||
| msg363578 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年03月07日 05:11 | |
Spinoff from #39852. At least the selection clear code added there should be pulled into a module level function and tested. |
|||
| msg363580 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年03月07日 05:17 | |
(Mozilla) Thunderbird, unlike (Mozilla) Firefox, has move/clear right clicks. |
|||
| msg363581 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年03月07日 05:29 | |
I believe the following is true: when only one selection is allowed, the cursor is normally at one end or the other, and any cursor movement either clear the selection or changes its range. |
|||
| msg363675 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年03月08日 19:30 | |
New changeset 4ca060d8ad7c6df1fd4df30f9a14f6aa35380c09 by Terry Jan Reedy in branch 'master': bpo-39885: IDLE context menu clears selection (#18859) https://github.com/python/cpython/commit/4ca060d8ad7c6df1fd4df30f9a14f6aa35380c09 |
|||
| msg363676 - (view) | Author: miss-islington (miss-islington) | Date: 2020年03月08日 19:46 | |
New changeset f9684d222effff0950c1ce206873a9c66dfd30ed by Miss Islington (bot) in branch '3.7': bpo-39885: IDLE context menu clears selection (GH-18859) https://github.com/python/cpython/commit/f9684d222effff0950c1ce206873a9c66dfd30ed |
|||
| msg363677 - (view) | Author: miss-islington (miss-islington) | Date: 2020年03月08日 19:47 | |
New changeset b2e8240261aa879b8978d7add6dd1efc4318add1 by Miss Islington (bot) in branch '3.8': bpo-39885: IDLE context menu clears selection (GH-18859) https://github.com/python/cpython/commit/b2e8240261aa879b8978d7add6dd1efc4318add1 |
|||
| msg363991 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年03月12日 03:14 | |
Restore not clearing the selection when click within it. See Exception in 1 above. Users need to continue to see what will be copied or cut (which also happens with paste). The breakpoint toggle and goto file/line options on the context menu need the line number of the click. If the cursor is not moved, another alternative is needed. |
|||
| msg370337 - (view) | Author: Terry J. Reedy (terry.reedy) * (Python committer) | Date: 2020年05月29日 22:54 | |
New changeset 97e4e0f53d6690db6b942678489716a30925b8af by Terry Jan Reedy in branch 'master': bpo-39885: Make IDLE context menu cut and copy work again (GH-18951) https://github.com/python/cpython/commit/97e4e0f53d6690db6b942678489716a30925b8af |
|||
| msg370339 - (view) | Author: miss-islington (miss-islington) | Date: 2020年05月29日 23:11 | |
New changeset 80b6a05d38ce34ef543a2376b8132eef4ada67ce by Miss Islington (bot) in branch '3.7': bpo-39885: Make IDLE context menu cut and copy work again (GH-18951) https://github.com/python/cpython/commit/80b6a05d38ce34ef543a2376b8132eef4ada67ce |
|||
| msg370340 - (view) | Author: miss-islington (miss-islington) | Date: 2020年05月29日 23:13 | |
New changeset 3dcccd1186febe0bca5936aed750d55c68b78bcd by Miss Islington (bot) in branch '3.8': bpo-39885: Make IDLE context menu cut and copy work again (GH-18951) https://github.com/python/cpython/commit/3dcccd1186febe0bca5936aed750d55c68b78bcd |
|||
| msg370341 - (view) | Author: miss-islington (miss-islington) | Date: 2020年05月29日 23:13 | |
New changeset 9f3f70fd0b6922840b3ef8018c446a6c8ac74ece by Miss Islington (bot) in branch '3.9': bpo-39885: Make IDLE context menu cut and copy work again (GH-18951) https://github.com/python/cpython/commit/9f3f70fd0b6922840b3ef8018c446a6c8ac74ece |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:59:27 | admin | set | github: 84066 |
| 2020年05月29日 23:31:23 | terry.reedy | set | status: open -> closed stage: patch review -> resolved resolution: fixed versions: + Python 3.10 |
| 2020年05月29日 23:13:25 | miss-islington | set | messages: + msg370341 |
| 2020年05月29日 23:13:03 | miss-islington | set | messages: + msg370340 |
| 2020年05月29日 23:11:35 | miss-islington | set | messages: + msg370339 |
| 2020年05月29日 22:54:42 | miss-islington | set | pull_requests: + pull_request19768 |
| 2020年05月29日 22:54:35 | miss-islington | set | pull_requests: + pull_request19767 |
| 2020年05月29日 22:54:28 | miss-islington | set | pull_requests: + pull_request19766 |
| 2020年05月29日 22:54:18 | terry.reedy | set | messages: + msg370337 |
| 2020年03月12日 03:52:05 | terry.reedy | set | stage: needs patch -> patch review pull_requests: + pull_request18302 |
| 2020年03月12日 03:15:16 | terry.reedy | set | title: IDLE right click should clear any selection -> IDLE right click outside of any selection should clear it |
| 2020年03月12日 03:14:27 | terry.reedy | set | status: closed -> open resolution: fixed -> (no value) messages: + msg363991 stage: resolved -> needs patch |
| 2020年03月08日 21:53:00 | terry.reedy | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2020年03月08日 19:47:09 | miss-islington | set | messages: + msg363677 |
| 2020年03月08日 19:46:41 | miss-islington | set | messages: + msg363676 |
| 2020年03月08日 19:30:21 | miss-islington | set | pull_requests: + pull_request18218 |
| 2020年03月08日 19:30:15 | miss-islington | set | nosy:
+ miss-islington pull_requests: + pull_request18217 |
| 2020年03月08日 19:30:08 | terry.reedy | set | messages: + msg363675 |
| 2020年03月08日 18:57:34 | terry.reedy | set | keywords:
+ patch stage: test needed -> patch review pull_requests: + pull_request18216 |
| 2020年03月07日 05:29:07 | terry.reedy | set | messages: + msg363581 |
| 2020年03月07日 05:17:21 | terry.reedy | set | messages:
+ msg363580 title: IDLE right click should unselect -> IDLE right click should clear any selection |
| 2020年03月07日 05:11:38 | terry.reedy | set | messages: + msg363578 |
| 2020年03月07日 05:08:09 | terry.reedy | create | |