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 louielu
Recipients louielu, serhiy.storchaka, terry.reedy
Date 2017-05-26.12:44:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1495802655.34.0.429885250217.issue27115@psf.upfronthosting.co.za>
In-reply-to
Content
We can solve this problem by two ways.

One is to add set_line_and_column() to the end of goto_line_event(), but this will make Return trigger set_line_and_column twice.

Another is to change the bind event in simpledialog from "<Return>" to "<KeyRelease-Return>" to prevent editor use the KeyRelease event. But I think this will have some backward-compatibility problem, maybe we should add a parameter to control buttonbox bind on "<Return>" or "<KeyRelease-Return>".

Then we can add set_line_and_column() to the end of the goto_line_event(), and have no problem about trigging twice.
History
Date User Action Args
2017-05-26 12:44:15louielusetrecipients: + louielu, terry.reedy, serhiy.storchaka
2017-05-26 12:44:15louielusetmessageid: <1495802655.34.0.429885250217.issue27115@psf.upfronthosting.co.za>
2017-05-26 12:44:15louielulinkissue27115 messages
2017-05-26 12:44:15louielucreate