logo       

passing along cmd-key presses: msg#00151

python.apple

Subject: passing along cmd-key presses

I'm working on a game using pygame. Thanks to some sample code from Bob, I've managed to connect a proper .nib file. However, my code seems to grab all keystrokes, so that for example cmd-Q doesn't quit the application, but gets picked up as a "q" press by my code. Do I need to somehow check for the status of the cmd keys, so that I can somehow pass along cmd-key presses to the Cocoa event loop?

//jack


_______________________________________________
Pythonmac-SIG maillist - Pythonmac-SIG@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/pythonmac-sig



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise