Skip to content

Commit 0a25aad

Browse files
olivierdalangmhugent
authored andcommittedMar 7, 2013
change "paste in place" shortcut to ctrl+shift+V
1 parent 89f1aaa commit 0a25aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgscomposerview.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
493493
}
494494

495495
//TODO : "Ctrl+Shift+V" is one way to paste, but on some platefoms you can use Shift+Ins and F18
496-
if ( e->matches( QKeySequence::Paste ) || (e->key() == Qt::Key_V && e->modifiers() & Qt::ControlModifier && e->modifiers() & Qt::AltModifier) )
496+
if ( e->matches( QKeySequence::Paste ) || (e->key() == Qt::Key_V && e->modifiers() & Qt::ControlModifier && e->modifiers() & Qt::ShiftModifier) )
497497
{
498498
QDomDocument doc;
499499
QClipboard *clipboard = QApplication::clipboard();
@@ -505,7 +505,7 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
505505
if ( composition() )
506506
{
507507
QPointF pt = mapToScene( mapFromGlobal( QCursor::pos() ) );
508-
bool pasteInPlace = (e->modifiers() & Qt::AltModifier);
508+
bool pasteInPlace = (e->modifiers() & Qt::ShiftModifier);
509509
composition()->addItemsFromXML( docElem, doc, 0, true, &pt, pasteInPlace );
510510
}
511511
}

0 commit comments

Comments
 (0)
Please sign in to comment.