Commit bbfe7bad authored by Daniel Molkentin's avatar Daniel Molkentin

Add standard shortcut for print action.

Also update Visual Studio keyboard scheme. Xcode already had a proper
key binding.

Reviewed-by: con
parent 18fcfeb1
......@@ -127,7 +127,7 @@
<key value="Ctrl+Shift+S" />
</shortcut>
<shortcut id="QtCreator.Print" >
<key value="" />
<key value="Ctrl+P" />
</shortcut>
<shortcut id="QtCreator.Exit" >
<key value="Ctrl+Q" />
......
......@@ -603,6 +603,7 @@ void MainWindow::registerDefaultActions()
icon = QIcon::fromTheme(QLatin1String("document-print"));
tmpaction = new QAction(icon, tr("&Print..."), this);
cmd = am->registerAction(tmpaction, Constants::PRINT, m_globalContext);
cmd->setDefaultKeySequence(QKeySequence::Print);
mfile->addAction(cmd, Constants::G_FILE_PRINT);
// Exit Action
......
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