mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	 4cc5ef5dbe
			
		
	
	
		4cc5ef5dbe
		
	
	
	
	
		
			
			M PyShell.py M config-keys.def M configHandler.py 1. Clear any un-entered characters from input line before printing the restart boundary. 2. Restore the Debug menu: There are now both Shell and Debug menus. 3. Add Control-F6 keybinding to Restart Shell. 4. Clarify PyShell.cancel_check() comment. 5. Update doc string for Bindings.py and re-format the file slightly.
		
			
				
	
	
		
			155 lines
		
	
	
	
		
			5.2 KiB
		
	
	
	
		
			Modula-2
		
	
	
	
	
	
			
		
		
	
	
			155 lines
		
	
	
	
		
			5.2 KiB
		
	
	
	
		
			Modula-2
		
	
	
	
	
	
| # IDLE reads several config files to determine user preferences.  This 
 | |
| # file is the default config file for idle key binding settings.  
 | |
| # Where multiple keys are specified for an action: if they are separated
 | |
| # by a space (eg. action=<key1> <key2>) then the keys are altenatives, if
 | |
| # 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.
 | |
| 
 | |
| [IDLE Classic Windows]
 | |
| copy=<Control-Key-c>
 | |
| cut=<Control-Key-x>
 | |
| paste=<Control-Key-v>
 | |
| beginning-of-line= <Key-Home>
 | |
| center-insert=<Control-Key-l>
 | |
| close-all-windows=<Control-Key-q>
 | |
| close-window=<Alt-Key-F4> <Meta-Key-F4>
 | |
| do-nothing=<Control-Key-F12>
 | |
| end-of-file=<Control-Key-d>
 | |
| python-docs=<Key-F1>
 | |
| python-context-help=<Shift-Key-F1> 
 | |
| history-next=<Alt-Key-n> <Meta-Key-n>
 | |
| history-previous=<Alt-Key-p> <Meta-Key-p>
 | |
| interrupt-execution=<Control-Key-c>
 | |
| view-restart=<Key-F6>
 | |
| restart-shell=<Control-Key-F6>
 | |
| open-class-browser=<Alt-Key-c> <Meta-Key-c>
 | |
| open-module=<Alt-Key-m> <Meta-Key-m>
 | |
| open-new-window=<Control-Key-n>
 | |
| open-window-from-file=<Control-Key-o>
 | |
| plain-newline-and-indent=<Control-Key-j>
 | |
| print-window=<Control-Key-p>
 | |
| redo=<Control-Shift-Key-z>
 | |
| remove-selection=<Key-Escape>
 | |
| save-copy-of-window-as-file=<Alt-Shift-Key-s>
 | |
| save-window-as-file=<Control-Shift-Key-s>
 | |
| save-window=<Control-Key-s>
 | |
| select-all=<Control-Key-a>
 | |
| toggle-auto-coloring=<Control-Key-slash>
 | |
| undo=<Control-Key-z>
 | |
| find=<Control-Key-f>
 | |
| find-again=<Control-Key-g> <Key-F3>
 | |
| find-in-files=<Alt-Key-F3> <Meta-Key-F3>
 | |
| find-selection=<Control-Key-F3>
 | |
| replace=<Control-Key-h>
 | |
| goto-line=<Alt-Key-g> <Meta-Key-g>
 | |
| 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> <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>
 | |
| toggle-tabs=<Alt-Key-t> <Meta-Key-t>
 | |
| change-indentwidth=<Alt-Key-u> <Meta-Key-u>
 | |
| 
 | |
| [IDLE Classic Unix]
 | |
| 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>
 | |
| view-restart=<Key-F6>
 | |
| restart-shell=<Control-Key-F6>
 | |
| 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>
 | |
| print-window=<Control-x><Control-Key-p>
 | |
| python-docs=<Control-Key-h> 
 | |
| python-context-help=<Control-Shift-Key-h> 
 | |
| 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>
 | |
| 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>
 | |
| 
 | |
| [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>
 | |
| do-nothing=<Control-Key-F12>
 | |
| end-of-file=<Control-Key-d>
 | |
| python-docs=<Key-F1>
 | |
| python-context-help=<Shift-Key-F1> 
 | |
| history-next=<Control-Key-n>
 | |
| history-previous=<Control-Key-p>
 | |
| interrupt-execution=<Control-Key-c>
 | |
| view-restart=<Key-F6>
 | |
| restart-shell=<Control-Key-F6>
 | |
| 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>
 | |
| redo=<Shift-Command-Key-z> 
 | |
| remove-selection=<Key-Escape>
 | |
| save-window-as-file=<Shift-Command-Key-s>
 | |
| 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>
 |