Commit 497e5141 authored by con's avatar con
Browse files

Adapt default shortcut for completion on Mac.

Since Leopard our default shortcut for completion collides
with the one for Spotlight (Ctrl+Space).
Cmd+Space is taken for Mac's keyboard layout settings,
so going for Opt+Space...
parent f66df7b9
...@@ -127,7 +127,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe ...@@ -127,7 +127,7 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
#ifndef Q_WS_MAC #ifndef Q_WS_MAC
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Space"))); command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Space")));
#else #else
command->setDefaultKeySequence(QKeySequence(tr("Meta+Space"))); command->setDefaultKeySequence(QKeySequence(tr("Alt+Space")));
#endif #endif
connect(completionShortcut, SIGNAL(activated()), this, SLOT(invokeCompletion())); connect(completionShortcut, SIGNAL(activated()), this, SLOT(invokeCompletion()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment