forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -309,7 +309,11 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
|
||||
command = ami->registerAction(m_diffCurrentAction,
|
||||
CMD_ID_DIFF_CURRENT, globalcontext);
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
#ifdef Q_OS_MAC
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Meta+S,Meta+D")));
|
||||
#else
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+S,Alt+D")));
|
||||
#endif
|
||||
connect(m_diffCurrentAction, SIGNAL(triggered()), this, SLOT(diffCurrentFile()));
|
||||
subversionMenu->addAction(command);
|
||||
m_commandLocator->appendCommand(command);
|
||||
@@ -338,7 +342,11 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
|
||||
command = ami->registerAction(m_addAction, CMD_ID_ADD,
|
||||
globalcontext);
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
#ifdef Q_OS_MAC
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Meta+S,Meta+A")));
|
||||
#else
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+S,Alt+A")));
|
||||
#endif
|
||||
connect(m_addAction, SIGNAL(triggered()), this, SLOT(addCurrentFile()));
|
||||
subversionMenu->addAction(command);
|
||||
m_commandLocator->appendCommand(command);
|
||||
@@ -347,7 +355,11 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
|
||||
command = ami->registerAction(m_commitCurrentAction,
|
||||
CMD_ID_COMMIT_CURRENT, globalcontext);
|
||||
command->setAttribute(Core::Command::CA_UpdateText);
|
||||
#ifdef Q_OS_MAC
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Meta+S,Meta+C")));
|
||||
#else
|
||||
command->setDefaultKeySequence(QKeySequence(tr("Alt+S,Alt+C")));
|
||||
#endif
|
||||
connect(m_commitCurrentAction, SIGNAL(triggered()), this, SLOT(startCommitCurrentFile()));
|
||||
subversionMenu->addAction(command);
|
||||
m_commandLocator->appendCommand(command);
|
||||
|
Reference in New Issue
Block a user