Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lib/idlelib/NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Released on 2020-10-05?
======================================


bpo-39885: Since clicking to get an IDLE context menu moves the
cursor, any text selection should be and now is cleared.

bpo-39852: Edit "Go to line" now clears any selection, preventing
accidental deletion. It also updates Ln and Col on the status bar.

Expand Down
1 change: 1 addition & 0 deletions Lib/idlelib/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ def handle_yview(self, event, *args):
rmenu = None

def right_menu_event(self, event):
self.text.tag_remove("sel", "1.0", "end")
self.text.mark_set("insert", "@%d,%d" % (event.x, event.y))
if not self.rmenu:
self.make_rmenu()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Since clicking to get an IDLE context menu moves the cursor,
any text selection should be and now is cleared.