Skip to content

Commit

Permalink
#9094: Use backspace in other similar code
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuarte47 committed Dec 17, 2013
1 parent 9106659 commit c86c412
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/nodetool/qgsmaptoolnodetool.h
Expand Up @@ -98,7 +98,7 @@ class QgsMapToolNodeTool: public QgsMapToolVertexEdit
/**
* Returns the index of first selected vertex, -1 when all unselected
*/
int firstSelectedVertex( );
int firstSelectedVertex();

/**
* Select the specified vertex bounded to current index range, returns the valid selected index
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolannotation.cpp
Expand Up @@ -133,7 +133,7 @@ void QgsMapToolAnnotation::keyPressEvent( QKeyEvent* e )
QgsAnnotationItem* sItem = selectedItem();
if ( sItem )
{
if ( e->key() == Qt::Key_Delete )
if ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete )
{
if ( mCanvas && mCanvas->scene() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassmapcalc.cpp
Expand Up @@ -829,7 +829,7 @@ void QgsGrassMapcalc::deleteItem()

void QgsGrassMapcalc::keyPressEvent( QKeyEvent * e )
{
if ( e->key() == Qt::Key_Delete )
if ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete )
{
deleteItem();

Expand Down

0 comments on commit c86c412

Please sign in to comment.