Message160180
Ctrl+Z followed by Return still exits the Python shell on the command prompt under Vista.
The simplest way to get this behavior working in IDLE would be modifying the end-of-file definition in config-keys.def, but only for the Windows keymap:
[IDLE Classic Windows]
# truncated
end-of-file=<Control-Key-d> <Control-Key-D> <Control-Key-z><Return>
# truncated
I left the Ctrl+D bindings in place, as these are IDLE's "norm". In a strict sense they should be removed for a Windows key map. (I am basing my cross-platform understanding of Ctrl+Z from here: http://en.wikipedia.org/wiki/Control-Z )
The undo functionality already binds to Ctrl+Z. By using the Ctrl+Z and Return sequence to signal IDLE's shell to exit, I can foresee users accidentally closing their shells. Consider this scenario: a user types a long command and the prompt and then presses Ctrl+Z to undo the last few key strokes. The user then presses enter to run the command but the shell closes instead. The regular python shell from a command prompt displays a "^Z" as a visual indicator. If IDLE's shell did the same then I would not have hesitations about changing the key bindings.
For now, I'm in favor of changing the documentation in help.txt to omit "(this is Control-z on Windows)." |
|
Date |
User |
Action |
Args |
2012-05-08 01:07:36 | roger.serwy | set | recipients:
+ roger.serwy, terry.reedy, r.david.murray |
2012-05-08 01:07:36 | roger.serwy | set | messageid: <1336439256.62.0.122151864206.issue14735@psf.upfronthosting.co.za> |
2012-05-08 01:07:36 | roger.serwy | link | issue14735 messages |
2012-05-08 01:07:35 | roger.serwy | create | |
|