forked from qt-creator/qt-creator
Add standard shortcut for print action.
Also update Visual Studio keyboard scheme. Xcode already had a proper key binding. Reviewed-by: con
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user