forked from qt-creator/qt-creator
Changed default shortcut for Insert Line Below Current Line
Use the Visual Studio shortcut instead of the Eclipse shortcut by default. It seems to make a bit more sense in combination with Ctrl+Shift+Return.
This commit is contained in:
@@ -300,7 +300,7 @@ void TextEditorActionHandler::createActions()
|
|||||||
|
|
||||||
m_insertLineBelowAction = new QAction(tr("Insert Line Below Current Line"), this);
|
m_insertLineBelowAction = new QAction(tr("Insert Line Below Current Line"), this);
|
||||||
command = am->registerAction(m_insertLineBelowAction, Constants::INSERT_LINE_BELOW, m_contextId);
|
command = am->registerAction(m_insertLineBelowAction, Constants::INSERT_LINE_BELOW, m_contextId);
|
||||||
command->setDefaultKeySequence(QKeySequence(tr("Shift+Return")));
|
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Return")));
|
||||||
connect(m_insertLineBelowAction, SIGNAL(triggered()), this, SLOT(insertLineBelow()));
|
connect(m_insertLineBelowAction, SIGNAL(triggered()), this, SLOT(insertLineBelow()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user