where is ctrl+newline handled in pywin editor?

Roger Upole rupole at hotmail.com
Tue Sep 22 09:18:40 CEST 2009

"C or L Smith" wrote:
>I use the pywin environment on Windows for python code editing and 
>interactive environment.
> I've been able to find the place in the editor files where the enter key 
> is handled and where the whitespace is stripped from a line and I've been 
> able to get it to not leave any white space when a double return is 
> entered. But what I would like to be able to do is find the place where 
> ctrl+enter is handled so I could have it strip any trailing space from the 
> current line before going back to the left margin. Is anyone acquainted 
> enough with the pywin editor to be able to help with this?
> Thanks,
> Chris
> -- 
> http://mail.python.org/mailman/listinfo/python-list

The key bindings are in \pythonwin\pywin\default.cfg.  The
current definition is

Ctrl+Enter        = ProcessEnter

(same as a normal enter).
ProcessEnterEvent in \pythonwin\pywin\framework\interact.py
checks whether the shift or ctrl keys were used.


More information about the Python-list mailing list