Skip to content

Commit 91f2348

Browse files
author
telwertowski
committed
For Mac OS X, use the standard Ctrl+? instead of F1 for the primary help 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@5581 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 09d8277 commit 91f2348

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/gui/qgisapp.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -477,12 +477,18 @@ void QgisApp::createActions()
477477
// Help Menu Related items
478478
//
479479
mActionHelpContents= new QAction(QIcon(myIconPath+"/mActionHelpContents.png"), tr("Help Contents"), this);
480+
#ifdef Q_WS_MAC
481+
mActionHelpContents->setShortcut(tr("Ctrl+?","Help Documentation (Mac)"));
482+
#else
480483
mActionHelpContents->setShortcut(tr("F1","Help Documentation"));
484+
#endif
481485
mActionHelpContents->setStatusTip(tr("Help Documentation"));
482486
connect(mActionHelpContents, SIGNAL(triggered()), this, SLOT(helpContents()));
483487
//
484488
mActionQgisHomePage= new QAction(QIcon(myIconPath+"/mActionQgisHomePage.png"), tr("Qgis Home Page"), this);
489+
#ifndef Q_WS_MAC
485490
mActionQgisHomePage->setShortcut(tr("Ctrl+H","QGIS Home Page"));
491+
#endif
486492
mActionQgisHomePage->setStatusTip(tr("QGIS Home Page"));
487493
connect(mActionQgisHomePage, SIGNAL(triggered()), this, SLOT(helpQgisHomePage()));
488494
//

0 commit comments

Comments
 (0)