# HG changeset patch # User koda # Date 1301770660 -7200 # Node ID d3af455a868eaec3b03d6764e85ef3f739b49ca5 # Parent df5bd3c32e1908869219a65dfed67e659612d048 cmd+m should minimize the app as per apple human guidelines diff -r df5bd3c32e19 -r d3af455a868e QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sat Apr 02 21:20:18 2011 +0400 +++ b/QTfrontend/hwform.cpp Sat Apr 02 20:57:40 2011 +0200 @@ -98,6 +98,7 @@ #ifdef __APPLE__ panel = new M3Panel; + #ifdef SPARKLE_ENABLED AutoUpdater* updater; CocoaInitializer initializer; @@ -105,6 +106,9 @@ if (updater && config->isAutoUpdateEnabled()) updater->checkForUpdates(); #endif + + QShortcut *hideFrontend = new QShortcut(QKeySequence("Ctrl+M"), this); + connect (hideFrontend, SIGNAL(activated()), this, SLOT(showMinimized())); #else // ctrl+q closes frontend for consistency QShortcut *closeFrontend = new QShortcut(QKeySequence("Ctrl+Q"), this);