Skip to content

Commit

Permalink
[FEATURE]: Composer items can also be deleted with the backspace key.…
Browse files Browse the repository at this point in the history
… Especially usefull for keyboards without delete (frequent e.g. on Macs)

git-svn-id: http://svn.osgeo.org/qgis/trunk@14326 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Oct 3, 2010
1 parent 82edec5 commit 3f7edd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgscomposerview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void QgsComposerView::keyPressEvent( QKeyEvent * e )
QList<QgsComposerItem*>::iterator itemIt = composerItemList.begin();

//delete selected items
if ( e->key() == Qt::Key_Delete )
if ( e->key() == Qt::Key_Delete || e->key() == Qt::Key_Backspace )
{
for ( ; itemIt != composerItemList.end(); ++itemIt )
{
Expand Down

0 comments on commit 3f7edd8

Please sign in to comment.