[Idle-dev] Change keybindings
Peter Bengtsson
peter@grenna.net
Mon, 23 Apr 2001 11:28:41 +0200
Dear all,
New to the list but a fan of the IDLE tool. I use (mostly, unfortunatly)
windows.
On a french keyboard to get the squared bracket you need to <Alt Gr-)> to
get a ] unlike the qwerty keyboard where need only to push the ] key.
This makes it impossible for me to use the Indent Region and Dedent Region
shortcut. (Ctrl-[ and Ctrl-])
How can I "remap" this to my needs?
If I for example want to bind Ctrl-- to Dedent and Ctrl-_ to Indent.
In Tools/idle/AutoIndent.py I found this:
windows_keydefs = {
'<<indent-region>>': ['<Control-bracketright>'],
'<<dedent-region>>': ['<Control-bracketleft>'],
'<<comment-region>>': ['<Alt-Key-3>'],
'<<uncomment-region>>': ['<Alt-Key-4>'],
'<<tabify-region>>': ['<Alt-Key-5>'],
'<<untabify-region>>': ['<Alt-Key-6>'],
}
<pseudo>
Can I change '<Control-bracketright>' to '<Control-underscore>'??
</pseudo>
Hints? Tips? Help?
Cheers, Peter