OSDN Git Service

Editors: Change shortcut for copy line operation
authorLeandro Melo <leandro.melo@nokia.com>
Thu, 17 Mar 2011 10:07:24 +0000 (11:07 +0100)
committerLeandro Melo <leandro.melo@nokia.com>
Thu, 17 Mar 2011 10:17:47 +0000 (11:17 +0100)
Change the key binding for the copy line operation
introduced at 8ae4317394a3cb7acd085fee78c0c348d4e7ceb4
to Ctrl+Ins. We already use Shift+Del for the cut line
operation, so this would be CUA consistent.

src/plugins/texteditor/basetexteditor.cpp
src/plugins/texteditor/texteditoractionhandler.cpp

index dfc0cc5..ff7d7f7 100644 (file)
@@ -5031,7 +5031,7 @@ void BaseTextEditorWidget::cutLine()
     cut();
 }
 
-// control+shift+insert
+// ctrl+ins
 void BaseTextEditorWidget::copyLine()
 {
     QTextCursor prevCursor = textCursor();
index 73819d4..affdec4 100644 (file)
@@ -204,7 +204,7 @@ void TextEditorActionHandler::createActions()
 
     m_copyLineAction = new QAction(tr("Copy &Line"), this);
     command = am->registerAction(m_copyLineAction, Constants::COPY_LINE, m_contextId);
-    command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Shift+Ins")));
+    command->setDefaultKeySequence(QKeySequence(tr("Ctrl+Ins")));
     connect(m_copyLineAction, SIGNAL(triggered()), this, SLOT(copyLine()));
 
     m_deleteLineAction = new QAction(tr("Delete &Line"), this);