Home | History | Annotate | Download | only in idlelib
      1 # IDLE reads several config files to determine user preferences.  This
      2 # 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 # there is no space (eg. action=<key1><key2>) then the keys comprise a
      6 # single 'emacs style' multi-keystoke binding. The tk event specifier 'Key'
      7 # is used in all cases, for consistency in auto key conflict checking in the
      8 # configuration gui.
      9 
     10 [IDLE Classic Windows]
     11 copy=<Control-Key-c> <Control-Key-C>
     12 cut=<Control-Key-x> <Control-Key-X>
     13 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 history-next=<Alt-Key-n> <Meta-Key-n>
     23 history-previous=<Alt-Key-p> <Meta-Key-p>
     24 interrupt-execution=<Control-Key-c> <Control-Key-C>
     25 view-restart=<Key-F6>
     26 restart-shell=<Control-Key-F6>
     27 open-class-browser=<Alt-Key-c> <Meta-Key-c> <Alt-Key-C>
     28 open-module=<Alt-Key-m> <Meta-Key-m> <Alt-Key-M>
     29 open-new-window=<Control-Key-n> <Control-Key-N>
     30 open-window-from-file=<Control-Key-o> <Control-Key-O>
     31 plain-newline-and-indent=<Control-Key-j> <Control-Key-J>
     32 print-window=<Control-Key-p> <Control-Key-P>
     33 redo=<Control-Shift-Key-Z>
     34 remove-selection=<Key-Escape>
     35 save-copy-of-window-as-file=<Alt-Shift-Key-S>
     36 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 undo=<Control-Key-z> <Control-Key-Z>
     41 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 smart-backspace=<Key-BackSpace>
     48 newline-and-indent=<Key-Return> <Key-KP_Enter>
     49 smart-indent=<Key-Tab>
     50 indent-region=<Control-Key-bracketright>
     51 dedent-region=<Control-Key-bracketleft>
     52 comment-region=<Alt-Key-3> <Meta-Key-3>
     53 uncomment-region=<Alt-Key-4> <Meta-Key-4>
     54 tabify-region=<Alt-Key-5> <Meta-Key-5>
     55 untabify-region=<Alt-Key-6> <Meta-Key-6>
     56 toggle-tabs=<Alt-Key-t> <Meta-Key-t> <Alt-Key-T>
     57 change-indentwidth=<Alt-Key-u> <Meta-Key-u> <Alt-Key-U>
     58 del-word-left=<Control-Key-BackSpace>
     59 del-word-right=<Control-Key-Delete>
     60 
     61 [IDLE Classic Unix]
     62 copy=<Alt-Key-w> <Meta-Key-w>
     63 cut=<Control-Key-w>
     64 paste=<Control-Key-y>
     65 beginning-of-line=<Control-Key-a> <Key-Home>
     66 center-insert=<Control-Key-l>
     67 close-all-windows=<Control-Key-x><Control-Key-c>
     68 close-window=<Control-Key-x><Control-Key-0>
     69 do-nothing=<Control-Key-x>
     70 end-of-file=<Control-Key-d>
     71 history-next=<Alt-Key-n> <Meta-Key-n>
     72 history-previous=<Alt-Key-p> <Meta-Key-p>
     73 interrupt-execution=<Control-Key-c>
     74 view-restart=<Key-F6>
     75 restart-shell=<Control-Key-F6>
     76 open-class-browser=<Control-Key-x><Control-Key-b>
     77 open-module=<Control-Key-x><Control-Key-m>
     78 open-new-window=<Control-Key-x><Control-Key-n>
     79 open-window-from-file=<Control-Key-x><Control-Key-f>
     80 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 redo=<Alt-Key-z> <Meta-Key-z>
     85 remove-selection=<Key-Escape>
     86 save-copy-of-window-as-file=<Control-Key-x><Control-Key-y>
     87 save-window-as-file=<Control-Key-x><Control-Key-w>
     88 save-window=<Control-Key-x><Control-Key-s>
     89 select-all=<Alt-Key-a> <Meta-Key-a>
     90 toggle-auto-coloring=<Control-Key-slash>
     91 undo=<Control-Key-z>
     92 find=<Control-Key-u><Control-Key-u><Control-Key-s>
     93 find-again=<Control-Key-u><Control-Key-s>
     94 find-in-files=<Alt-Key-s> <Meta-Key-s>
     95 find-selection=<Control-Key-s>
     96 replace=<Control-Key-r>
     97 goto-line=<Alt-Key-g> <Meta-Key-g>
     98 smart-backspace=<Key-BackSpace>
     99 newline-and-indent=<Key-Return> <Key-KP_Enter>
    100 smart-indent=<Key-Tab>
    101 indent-region=<Control-Key-bracketright>
    102 dedent-region=<Control-Key-bracketleft>
    103 comment-region=<Alt-Key-3>
    104 uncomment-region=<Alt-Key-4>
    105 tabify-region=<Alt-Key-5>
    106 untabify-region=<Alt-Key-6>
    107 toggle-tabs=<Alt-Key-t>
    108 change-indentwidth=<Alt-Key-u>
    109 del-word-left=<Alt-Key-BackSpace>
    110 del-word-right=<Alt-Key-d>
    111 
    112 [IDLE Classic Mac]
    113 copy=<Command-Key-c>
    114 cut=<Command-Key-x>
    115 paste=<Command-Key-v>
    116 beginning-of-line= <Key-Home>
    117 center-insert=<Control-Key-l>
    118 close-all-windows=<Command-Key-q>
    119 close-window=<Command-Key-w>
    120 do-nothing=<Control-Key-F12>
    121 end-of-file=<Control-Key-d>
    122 python-docs=<Key-F1>
    123 python-context-help=<Shift-Key-F1>
    124 history-next=<Control-Key-n>
    125 history-previous=<Control-Key-p>
    126 interrupt-execution=<Control-Key-c>
    127 view-restart=<Key-F6>
    128 restart-shell=<Control-Key-F6>
    129 open-class-browser=<Command-Key-b>
    130 open-module=<Command-Key-m>
    131 open-new-window=<Command-Key-n>
    132 open-window-from-file=<Command-Key-o>
    133 plain-newline-and-indent=<Control-Key-j>
    134 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 save-window=<Command-Key-s>
    139 save-copy-of-window-as-file=<Option-Command-Key-s>
    140 select-all=<Command-Key-a>
    141 toggle-auto-coloring=<Control-Key-slash>
    142 undo=<Command-Key-z>
    143 find=<Command-Key-f>
    144 find-again=<Command-Key-g> <Key-F3>
    145 find-in-files=<Command-Key-F3>
    146 find-selection=<Shift-Command-Key-F3>
    147 replace=<Command-Key-r>
    148 goto-line=<Command-Key-j>
    149 smart-backspace=<Key-BackSpace>
    150 newline-and-indent=<Key-Return> <Key-KP_Enter>
    151 smart-indent=<Key-Tab>
    152 indent-region=<Command-Key-bracketright>
    153 dedent-region=<Command-Key-bracketleft>
    154 comment-region=<Control-Key-3>
    155 uncomment-region=<Control-Key-4>
    156 tabify-region=<Control-Key-5>
    157 untabify-region=<Control-Key-6>
    158 toggle-tabs=<Control-Key-t>
    159 change-indentwidth=<Control-Key-u>
    160 del-word-left=<Control-Key-BackSpace>
    161 del-word-right=<Control-Key-Delete>
    162 
    163 [IDLE Classic OSX]
    164 toggle-tabs = <Control-Key-t>
    165 interrupt-execution = <Control-Key-c>
    166 untabify-region = <Control-Key-6>
    167 remove-selection = <Key-Escape>
    168 print-window = <Command-Key-p>
    169 replace = <Command-Key-r>
    170 goto-line = <Command-Key-j>
    171 plain-newline-and-indent = <Control-Key-j>
    172 history-previous = <Control-Key-p>
    173 beginning-of-line = <Control-Key-Left>
    174 end-of-line = <Control-Key-Right>
    175 comment-region = <Control-Key-3>
    176 redo = <Shift-Command-Key-Z>
    177 close-window = <Command-Key-w>
    178 restart-shell = <Control-Key-F6>
    179 save-window-as-file = <Shift-Command-Key-S>
    180 close-all-windows = <Command-Key-q>
    181 view-restart = <Key-F6>
    182 tabify-region = <Control-Key-5>
    183 find-again = <Command-Key-g> <Key-F3>
    184 find = <Command-Key-f>
    185 toggle-auto-coloring = <Control-Key-slash>
    186 select-all = <Command-Key-a>
    187 smart-backspace = <Key-BackSpace>
    188 change-indentwidth = <Control-Key-u>
    189 do-nothing = <Control-Key-F12>
    190 smart-indent = <Key-Tab>
    191 center-insert = <Control-Key-l>
    192 history-next = <Control-Key-n>
    193 del-word-right = <Option-Key-Delete>
    194 undo = <Command-Key-z>
    195 save-window = <Command-Key-s>
    196 uncomment-region = <Control-Key-4>
    197 cut = <Command-Key-x>
    198 find-in-files = <Command-Key-F3>
    199 dedent-region = <Command-Key-bracketleft>
    200 copy = <Command-Key-c>
    201 paste = <Command-Key-v>
    202 indent-region = <Command-Key-bracketright>
    203 del-word-left = <Option-Key-BackSpace> <Option-Command-Key-BackSpace>
    204 newline-and-indent = <Key-Return> <Key-KP_Enter>
    205 end-of-file = <Control-Key-d>
    206 open-class-browser = <Command-Key-b>
    207 open-new-window = <Command-Key-n>
    208 open-module = <Command-Key-m>
    209 find-selection = <Shift-Command-Key-F3>
    210 python-context-help = <Shift-Key-F1>
    211 save-copy-of-window-as-file = <Option-Command-Key-s>
    212 open-window-from-file = <Command-Key-o>
    213 python-docs = <Key-F1>
    214 
    215