Re: [Interest] Key_Cancel on Macintosh

2012-03-20 Thread John Weeks
On 20-Mar-2012, at 10:24 AM, Konstantin Tokarev wrote: On Windows, I can filter keypress events looking for Qt::Key_Cancel, which is generated by pressing Ctrl+Break.The Macintosh equivalent is Cmd-period. As far as I can make out, the Cocoa system catches that key combination and sends

Re: [Interest] Key_Cancel on Macintosh

2012-03-20 Thread Nikos Chantziaras
On 20/03/12 19:31, John Weeks wrote: On 20-Mar-2012, at 10:24 AM, Konstantin Tokarev wrote: On Windows, I can filter keypress events looking for Qt::Key_Cancel, which is generated by pressing Ctrl+Break.The Macintosh equivalent is Cmd-period. As far as I can make out, the Cocoa system

Re: [Interest] Key_Cancel on Macintosh

2012-03-20 Thread John Weeks
On 20-Mar-2012, at 10:53 AM, Nikos Chantziaras wrote: Maybe this is relevant: http://qt-project.org/doc/qt-4.8/qapplication.html#macEventFilter OK- that was a good lead. It seems that at that point the Cmd-period key event *IS* available. Here is my code: In my subclass of QApplication: