Skip to content

Commit

Permalink
change "paste in place" shortcut to ctrl+shift+V
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang authored and mhugent committed Mar 7, 2013
1 parent 89f1aaa commit 0a25aad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgscomposerview.cpp
Expand Up @@ -493,7 +493,7 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
}

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

0 comments on commit 0a25aad

Please sign in to comment.