Skip to content

Commit c86c412

Browse files
committed
#9094: Use backspace in other similar code
1 parent 9106659 commit c86c412

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/app/nodetool/qgsmaptoolnodetool.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class QgsMapToolNodeTool: public QgsMapToolVertexEdit
9898
/**
9999
* Returns the index of first selected vertex, -1 when all unselected
100100
*/
101-
int firstSelectedVertex( );
101+
int firstSelectedVertex();
102102

103103
/**
104104
* Select the specified vertex bounded to current index range, returns the valid selected index

src/app/qgsmaptoolannotation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void QgsMapToolAnnotation::keyPressEvent( QKeyEvent* e )
133133
QgsAnnotationItem* sItem = selectedItem();
134134
if ( sItem )
135135
{
136-
if ( e->key() == Qt::Key_Delete )
136+
if ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete )
137137
{
138138
if ( mCanvas && mCanvas->scene() )
139139
{

src/plugins/grass/qgsgrassmapcalc.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ void QgsGrassMapcalc::deleteItem()
829829

830830
void QgsGrassMapcalc::keyPressEvent( QKeyEvent * e )
831831
{
832-
if ( e->key() == Qt::Key_Delete )
832+
if ( e->key() == Qt::Key_Backspace || e->key() == Qt::Key_Delete )
833833
{
834834
deleteItem();
835835

0 commit comments

Comments
 (0)