diff options
| author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-03-03 15:13:05 +0100 |
|---|---|---|
| committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-03-04 11:37:08 +0000 |
| commit | 1896d2cc0e931e29926ec6e97576fa85b869c862 (patch) | |
| tree | c4fd3c78d6022d856619f67b42fc32d437c158c3 | |
| parent | b9ab6b3f490ea44158b2746a7b18a45af503b912 (diff) | |
| download | qt-creator-1896d2cc0e931e29926ec6e97576fa85b869c862.tar.gz | |
FakeVim: Change default keyboard sequence for FakeVim...
...on OSX to make it possible to enter and leave with the same
shortcut. Adjust user command mapping as well to be able to
execute these from inside FakeVim mode as well.
Task-number: QTCREATORBUG-14082
Change-Id: Ib93f798a61b4ed16db7cca7b3c927e1fb6bd5d0f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
| -rw-r--r-- | src/plugins/fakevim/fakevimplugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fakevim/fakevimplugin.cpp b/src/plugins/fakevim/fakevimplugin.cpp index ff23c96717..c482f0605e 100644 --- a/src/plugins/fakevim/fakevimplugin.cpp +++ b/src/plugins/fakevim/fakevimplugin.cpp @@ -1197,7 +1197,7 @@ bool FakeVimPluginPrivate::initialize() Command *cmd = 0; cmd = ActionManager::registerAction(theFakeVimSetting(ConfigUseFakeVim), INSTALL_HANDLER, globalcontext, true); - cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? Tr::tr("Meta+V,Meta+V") : Tr::tr("Alt+V,Alt+V"))); + cmd->setDefaultKeySequence(QKeySequence(UseMacShortcuts ? Tr::tr("Meta+Shift+V,Meta+Shift+V") : Tr::tr("Alt+V,Alt+V"))); ActionContainer *advancedMenu = ActionManager::actionContainer(Core::Constants::M_EDIT_ADVANCED); @@ -1208,7 +1208,7 @@ bool FakeVimPluginPrivate::initialize() auto act = new QAction(this); act->setText(Tr::tr("Execute User Action #%1").arg(i)); cmd = ActionManager::registerAction(act, base.withSuffix(i)); - cmd->setDefaultKeySequence(QKeySequence((UseMacShortcuts ? Tr::tr("Meta+V,%1") : Tr::tr("Alt+V,%1")).arg(i))); + cmd->setDefaultKeySequence(QKeySequence((UseMacShortcuts ? Tr::tr("Meta+Shift+V,%1") : Tr::tr("Alt+V,%1")).arg(i))); connect(act, &QAction::triggered, this, [this, i] { userActionTriggered(i); }); } |
