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.

Author terry.reedy
Recipients louielu, serhiy.storchaka, terry.reedy
Date 2020-03-06.02:47:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583462871.37.0.103778651543.issue27115@roundup.psfhosted.org>
In-reply-to
Content
I changed the title to reflect the intended user-visible behavior, which was always the real issue.  The original title proposed a solution that would not work.  The revised title gave an alternate solution that should not work.   

The discrepancy between clicking [Ok] and and pressing <Return> arises because pressing Enter in the query box leaks <KeyRelease-Return> to the text, which happens to trigger a status bar update.  I regard this somewhat accidental side-effect to be a bug to be fixed.  Changing the text and status bar are the responsibility of the event handler.

The line number query box should just return a positive int or None, without side-effect.  So we should make sure that Query boxes do not leak key events and create a subclass to get a positive int.  But such a replacement is somewhat independent of triggering <<set-line-and-column>>. 

A related issue is that goto does not clear selections. #39844.  I may fix that and this with one PR.
History
Date User Action Args
2020-03-06 02:47:51terry.reedysetrecipients: + terry.reedy, serhiy.storchaka, louielu
2020-03-06 02:47:51terry.reedysetmessageid: <1583462871.37.0.103778651543.issue27115@roundup.psfhosted.org>
2020-03-06 02:47:51terry.reedylinkissue27115 messages
2020-03-06 02:47:51terry.reedycreate