diff options
author | Eike Ziller <eike.ziller@nokia.com> | 2012-05-22 16:08:40 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2012-05-22 16:48:20 +0200 |
commit | 48a23cc28b04126124cda74670d03d4286afa40d (patch) | |
tree | 5d83da71ad3b81ba43f6b4918fbff330076dd774 /src/plugins/cpaster | |
parent | d8429000f014ed04964948a454a5d6e285646686 (diff) | |
download | qt-creator-48a23cc28b04126124cda74670d03d4286afa40d.tar.gz |
Mac: Avoid Alt+<character> shortcuts
Because these tend to add special characters into the editor instead of
triggering the shortcut. Use Ctrl (aka Qt's Meta) instead.
Change-Id: I5866772baf4550e6d048e4d7252b2899a6d28296
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
Diffstat (limited to 'src/plugins/cpaster')
-rw-r--r-- | src/plugins/cpaster/cpasterplugin.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/cpaster/cpasterplugin.cpp b/src/plugins/cpaster/cpasterplugin.cpp index ef5e5fb69d..3c4d792cb8 100644 --- a/src/plugins/cpaster/cpasterplugin.cpp +++ b/src/plugins/cpaster/cpasterplugin.cpp @@ -174,7 +174,11 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *errorMe m_postEditorAction = new QAction(tr("Paste Snippet..."), this); command = actionManager->registerAction(m_postEditorAction, "CodePaster.Post", globalcontext); +#ifdef Q_OS_MAC + command->setDefaultKeySequence(QKeySequence(tr("Meta+C,Meta+P"))); +#else command->setDefaultKeySequence(QKeySequence(tr("Alt+C,Alt+P"))); +#endif connect(m_postEditorAction, SIGNAL(triggered()), this, SLOT(postEditor())); cpContainer->addAction(command); @@ -185,7 +189,11 @@ bool CodepasterPlugin::initialize(const QStringList &arguments, QString *errorMe m_fetchAction = new QAction(tr("Fetch Snippet..."), this); command = actionManager->registerAction(m_fetchAction, "CodePaster.Fetch", globalcontext); +#ifdef Q_OS_MAC + command->setDefaultKeySequence(QKeySequence(tr("Meta+C,Meta+F"))); +#else command->setDefaultKeySequence(QKeySequence(tr("Alt+C,Alt+F"))); +#endif connect(m_fetchAction, SIGNAL(triggered()), this, SLOT(fetch())); cpContainer->addAction(command); |