123
124
// Make sure the shortcut still works when the completion widget is active
124
125
completionShortcut->setContext(Qt::ApplicationShortcut);
125
126
Core::Command *command = am->registerShortcut(completionShortcut, Constants::COMPLETE_THIS, context);
127
128
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Space")));
129
130
command->setDefaultKeySequence(QKeySequence(tr("Meta+Space")));
131
132
connect(completionShortcut, SIGNAL(activated()), this, SLOT(invokeCompletion()));