Review request for 7131196 - [macosx] Cmd-Q does not quit a graphical Java app

Anton V. Tarasov anton.tarasov at oracle.com
Wed Jan 25 05:58:59 PST 2012


Hello,

Please review a fix for 7131196.

webrev: http://cr.openjdk.java.net/~ant/7131196/webrev.0/

-[NSView performKeyEquivalent:] serves to listen to key events with
modifiers. Currently it returns NO (FALSE). This prevents NSApp from
processing the event by default. For instance, CMD+Q doesn't close
the app.

The fix is to return NO from the method. So, it will allow default
processing for all the events with modifiers (along with dispatching
them to Java).

Thanks,
Anton.




More information about the macosx-port-dev mailing list