Skip to content

Commit

Permalink
For Mac OS X, use the standard Ctrl+? instead of F1 for the primary h…
Browse files Browse the repository at this point in the history
…elp shortcut. Don't use Ctrl+H for anything since it will shadow the systemwide shortcut to hide the application.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5581 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
telwertowski committed Jul 10, 2006
1 parent ca51e25 commit b2dad32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgisapp.cpp
Expand Up @@ -477,12 +477,18 @@ void QgisApp::createActions()
// Help Menu Related items
//
mActionHelpContents= new QAction(QIcon(myIconPath+"/mActionHelpContents.png"), tr("Help Contents"), this);
#ifdef Q_WS_MAC
mActionHelpContents->setShortcut(tr("Ctrl+?","Help Documentation (Mac)"));
#else
mActionHelpContents->setShortcut(tr("F1","Help Documentation"));
#endif
mActionHelpContents->setStatusTip(tr("Help Documentation"));
connect(mActionHelpContents, SIGNAL(triggered()), this, SLOT(helpContents()));
//
mActionQgisHomePage= new QAction(QIcon(myIconPath+"/mActionQgisHomePage.png"), tr("Qgis Home Page"), this);
#ifndef Q_WS_MAC
mActionQgisHomePage->setShortcut(tr("Ctrl+H","QGIS Home Page"));
#endif
mActionQgisHomePage->setStatusTip(tr("QGIS Home Page"));
connect(mActionQgisHomePage, SIGNAL(triggered()), this, SLOT(helpQgisHomePage()));
//
Expand Down

0 comments on commit b2dad32

Please sign in to comment.