[issue39852] IDLE: Goto should remove any selection

Terry J. Reedy report at bugs.python.org
Thu Mar 5 17:18:12 EST 2020


Terry J. Reedy <tjreedy at udel.edu> added the comment:

This is much clearer.  To expand on what I said before, inserting *anything*, such as by hitting a key, replaces a selection.  I verified that this is normal behavior, at least on Windows, with Notepad, Notepad++, and this Firefox entry box I am typing in.  So either of your steps 6 or 7 delete the still selected line, after the goto.  (And so a click is needed before 6 to stop the deletion.)  I see the continued selection as the problem.  Both Notepad and Notepad++ unselect any selection upon goto, the same as if one moved the cursor by clicking instead of goto.

I will try adding text.selection_clear() to the goto code.

----------
stage:  -> needs patch
title: IDLE: Copy/Paste behaves like Cut/Paste -> IDLE: Goto should remove any selection
versions: +Python 3.7, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39852>
_______________________________________


More information about the Python-bugs-list mailing list