config-keys.def 5.66 KB
Newer Older
1 2
# IDLE reads several config files to determine user preferences.  This
# file is the default config file for idle key binding settings.
3
# Where multiple keys are specified for an action: if they are separated
4
# by a space (eg. action=<key1> <key2>) then the keys are alternatives, if
5 6 7 8
# there is no space (eg. action=<key1><key2>) then the keys comprise a
# single 'emacs style' multi-keystoke binding. The tk event specifier 'Key'
# is used in all cases, for consistency in auto key conflict checking in the
# configuration gui.
9

10
[IDLE Classic Windows]
11 12 13
copy=<Control-Key-c> <Control-Key-C>
cut=<Control-Key-x> <Control-Key-X>
paste=<Control-Key-v> <Control-Key-V>
14
beginning-of-line= <Key-Home>
15
center-insert=<Control-Key-l> <Control-Key-L>
16
close-all-windows=<Control-Key-q>
17
close-window=<Alt-Key-F4> <Meta-Key-F4>
18
do-nothing=<Control-Key-F12>
19
end-of-file=<Control-Key-d> <Control-Key-D>
20
python-docs=<Key-F1>
21
python-context-help=<Shift-Key-F1>
22 23
history-next=<Alt-Key-n> <Meta-Key-n>
history-previous=<Alt-Key-p> <Meta-Key-p>
24
interrupt-execution=<Control-Key-c> <Control-Key-C>
Kurt B. Kaiser's avatar
Kurt B. Kaiser committed
25
view-restart=<Key-F6>
Kurt B. Kaiser's avatar
Kurt B. Kaiser committed
26
restart-shell=<Control-Key-F6>
27 28 29 30 31 32
open-class-browser=<Alt-Key-c> <Meta-Key-c> <Alt-Key-C>
open-module=<Alt-Key-m> <Meta-Key-m> <Alt-Key-M>
open-new-window=<Control-Key-n> <Control-Key-N>
open-window-from-file=<Control-Key-o> <Control-Key-O>
plain-newline-and-indent=<Control-Key-j> <Control-Key-J>
print-window=<Control-Key-p> <Control-Key-P>
33
redo=<Control-Shift-Key-Z>
34
remove-selection=<Key-Escape>
35 36
save-copy-of-window-as-file=<Alt-Shift-Key-S>
save-window-as-file=<Control-Shift-Key-S>
37
save-window=<Control-Key-s>
38
select-all=<Control-Key-a>
39
toggle-auto-coloring=<Control-Key-slash>
40 41
undo=<Control-Key-z> <Control-Key-Z>
find=<Control-Key-f> <Control-Key-F>
42
find-again=<Control-Key-g> <Key-F3>
43
find-in-files=<Alt-Key-F3> <Meta-Key-F3>
44
find-selection=<Control-Key-F3>
45
replace=<Control-Key-h> <Control-Key-H>
46
goto-line=<Alt-Key-g> <Meta-Key-g>
47 48 49 50 51
smart-backspace=<Key-BackSpace>
newline-and-indent=<Key-Return> <Key-KP_Enter>
smart-indent=<Key-Tab>
indent-region=<Control-Key-bracketright>
dedent-region=<Control-Key-bracketleft>
52 53 54 55
comment-region=<Alt-Key-3> <Meta-Key-3>
uncomment-region=<Alt-Key-4> <Meta-Key-4>
tabify-region=<Alt-Key-5> <Meta-Key-5>
untabify-region=<Alt-Key-6> <Meta-Key-6>
56 57
toggle-tabs=<Alt-Key-t> <Meta-Key-t> <Alt-Key-T>
change-indentwidth=<Alt-Key-u> <Meta-Key-u> <Alt-Key-U>
58 59
del-word-left=<Control-Key-BackSpace>
del-word-right=<Control-Key-Delete>
60

61
[IDLE Classic Unix]
62 63 64 65 66 67 68 69 70 71 72 73
copy=<Alt-Key-w> <Meta-Key-w>
cut=<Control-Key-w>
paste=<Control-Key-y>
beginning-of-line=<Control-Key-a> <Key-Home>
center-insert=<Control-Key-l>
close-all-windows=<Control-Key-x><Control-Key-c>
close-window=<Control-Key-x><Control-Key-0>
do-nothing=<Control-Key-x>
end-of-file=<Control-Key-d>
history-next=<Alt-Key-n> <Meta-Key-n>
history-previous=<Alt-Key-p> <Meta-Key-p>
interrupt-execution=<Control-Key-c>
Kurt B. Kaiser's avatar
Kurt B. Kaiser committed
74
view-restart=<Key-F6>
Kurt B. Kaiser's avatar
Kurt B. Kaiser committed
75
restart-shell=<Control-Key-F6>
76 77 78 79 80
open-class-browser=<Control-Key-x><Control-Key-b>
open-module=<Control-Key-x><Control-Key-m>
open-new-window=<Control-Key-x><Control-Key-n>
open-window-from-file=<Control-Key-x><Control-Key-f>
plain-newline-and-indent=<Control-Key-j>
81
print-window=<Control-x><Control-Key-p>
82
python-docs=<Control-Key-h>
83
python-context-help=<Control-Shift-Key-H>
84 85 86 87 88 89 90 91 92 93 94 95 96 97
redo=<Alt-Key-z> <Meta-Key-z>
remove-selection=<Key-Escape>
save-copy-of-window-as-file=<Control-Key-x><Control-Key-y>
save-window-as-file=<Control-Key-x><Control-Key-w>
save-window=<Control-Key-x><Control-Key-s>
select-all=<Alt-Key-a> <Meta-Key-a>
toggle-auto-coloring=<Control-Key-slash>
undo=<Control-Key-z>
find=<Control-Key-u><Control-Key-u><Control-Key-s>
find-again=<Control-Key-u><Control-Key-s>
find-in-files=<Alt-Key-s> <Meta-Key-s>
find-selection=<Control-Key-s>
replace=<Control-Key-r>
goto-line=<Alt-Key-g> <Meta-Key-g>
98 99 100 101 102 103 104 105 106 107 108
smart-backspace=<Key-BackSpace>
newline-and-indent=<Key-Return> <Key-KP_Enter>
smart-indent=<Key-Tab>
indent-region=<Control-Key-bracketright>
dedent-region=<Control-Key-bracketleft>
comment-region=<Alt-Key-3>
uncomment-region=<Alt-Key-4>
tabify-region=<Alt-Key-5>
untabify-region=<Alt-Key-6>
toggle-tabs=<Alt-Key-t>
change-indentwidth=<Alt-Key-u>
109 110
del-word-left=<Alt-Key-BackSpace>
del-word-right=<Alt-Key-d>
Tony Lownds's avatar
Tony Lownds committed
111

112 113 114 115 116 117 118 119
[IDLE Classic Mac]
copy=<Command-Key-c>
cut=<Command-Key-x>
paste=<Command-Key-v>
beginning-of-line= <Key-Home>
center-insert=<Control-Key-l>
close-all-windows=<Command-Key-q>
close-window=<Command-Key-w>
120
do-nothing=<Control-Key-F12>
121 122
end-of-file=<Control-Key-d>
python-docs=<Key-F1>
123
python-context-help=<Shift-Key-F1>
124 125
history-next=<Control-Key-n>
history-previous=<Control-Key-p>
126
interrupt-execution=<Control-Key-c>
Kurt B. Kaiser's avatar
Kurt B. Kaiser committed
127
view-restart=<Key-F6>
Kurt B. Kaiser's avatar
Kurt B. Kaiser committed
128
restart-shell=<Control-Key-F6>
129 130 131 132 133 134
open-class-browser=<Command-Key-b>
open-module=<Command-Key-m>
open-new-window=<Command-Key-n>
open-window-from-file=<Command-Key-o>
plain-newline-and-indent=<Control-Key-j>
print-window=<Command-Key-p>
135
redo=<Shift-Command-Key-Z>
136
remove-selection=<Key-Escape>
137
save-window-as-file=<Shift-Command-Key-S>
138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
save-window=<Command-Key-s>
save-copy-of-window-as-file=<Option-Command-Key-s>
select-all=<Command-Key-a>
toggle-auto-coloring=<Control-Key-slash>
undo=<Command-Key-z>
find=<Command-Key-f>
find-again=<Command-Key-g> <Key-F3>
find-in-files=<Command-Key-F3>
find-selection=<Shift-Command-Key-F3>
replace=<Command-Key-r>
goto-line=<Command-Key-j>
smart-backspace=<Key-BackSpace>
newline-and-indent=<Key-Return> <Key-KP_Enter>
smart-indent=<Key-Tab>
indent-region=<Command-Key-bracketright>
dedent-region=<Command-Key-bracketleft>
comment-region=<Control-Key-3>
uncomment-region=<Control-Key-4>
tabify-region=<Control-Key-5>
untabify-region=<Control-Key-6>
toggle-tabs=<Control-Key-t>
change-indentwidth=<Control-Key-u>
160 161
del-word-left=<Control-Key-BackSpace>
del-word-right=<Control-Key-Delete>