diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-11-09 13:44:17 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2018-11-09 13:44:15 +0000 |
commit | 3068bd3b804fe7f3b55c3919a0774f5e13331c12 (patch) | |
tree | a3acb44dac799deb70c231acb176323ceb3b9997 /src/plugins/macros | |
parent | e3cc0ce69430e7a0d0c437f73ff7b5c1d12b39c5 (diff) | |
download | qt-creator-3068bd3b804fe7f3b55c3919a0774f5e13331c12.tar.gz |
Macros: Disambiguate short cut
On an English keyboard Alt+( and Alt+) are basically
the same as Alt+Shift+9 and Alt+Shift+0.
On Windows and Linux these are already assigned to
(more prominent) actions, so re-assign macro recording
related short cuts.
Change-Id: I1057a08a617adf8027e28936feeb6347fbeb2c4e
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/macros')
-rw-r--r-- | src/plugins/macros/macrosplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/macros/macrosplugin.cpp b/src/plugins/macros/macrosplugin.cpp index 04c73425f2..c56520d9cf 100644 --- a/src/plugins/macros/macrosplugin.cpp +++ b/src/plugins/macros/macrosplugin.cpp @@ -74,14 +74,14 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *errorMessag QAction *startMacro = new QAction(tr("Record Macro"), this); Core::Command *command = Core::ActionManager::registerAction(startMacro, Constants::START_MACRO, textContext); - command->setDefaultKeySequence(QKeySequence(Core::useMacShortcuts ? tr("Ctrl+(") : tr("Alt+("))); + command->setDefaultKeySequence(QKeySequence(Core::useMacShortcuts ? tr("Ctrl+[") : tr("Alt+["))); mmacrotools->addAction(command); connect(startMacro, &QAction::triggered, m_macroManager, &MacroManager::startMacro); QAction *endMacro = new QAction(tr("Stop Recording Macro"), this); endMacro->setEnabled(false); command = Core::ActionManager::registerAction(endMacro, Constants::END_MACRO); - command->setDefaultKeySequence(QKeySequence(Core::useMacShortcuts ? tr("Ctrl+)") : tr("Alt+)"))); + command->setDefaultKeySequence(QKeySequence(Core::useMacShortcuts ? tr("Ctrl+]") : tr("Alt+]"))); mmacrotools->addAction(command); connect(endMacro, &QAction::triggered, m_macroManager, &MacroManager::endMacro); |