Message294547
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. |
|
Date |
User |
Action |
Args |
2017-05-26 12:44:15 | louielu | set | recipients:
+ louielu, terry.reedy, serhiy.storchaka |
2017-05-26 12:44:15 | louielu | set | messageid: <1495802655.34.0.429885250217.issue27115@psf.upfronthosting.co.za> |
2017-05-26 12:44:15 | louielu | link | issue27115 messages |
2017-05-26 12:44:15 | louielu | create | |
|