[Pythonmac-SIG] Re: [wxPython-mac] MachoPython eats Ctrl-C?

Jack Jansen Jack.Jansen@oratrix.com
Thu, 16 May 2002 11:43:00 +0200


On woensdag, mei 15, 2002, at 11:54 , Robin Dunn wrote:

> Jack,
>
> Is there something in MachoPython that will prevent Ctrl-C from 
> being sent
> to a window as an an event?  I noticed while working on wxSTC 
> that I can get
> EVT_KEY_DOWN events for other Ctrl keys, but not Ctrl-C so I 
> thought that
> maybe Python is trying to catch it to turn it into a KeyboardInterrupt
> exception.  But I'm not getting the exception either...

MachoPython doesn't do any event handling (except the initial 
decoding of the AppleEvent that started Python.app to get at the 
file being run). But I've also noticed that Control-C is 
equivalent to Command-. in many circumstances (not related to 
Python), so I think some lowlevel component of the system treats 
them as identical.

If this behaviour can be disabled I would guess it will be 
through the Carbon Event Manager, so maybe you should start 
looking there.

And please let me know if you find something:-)
--
- Jack Jansen        <Jack.Jansen@oratrix.com>        
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- 
Emma Goldman -