Skip to content

Commit

Permalink
Allow escape to cancel drawing new features
Browse files Browse the repository at this point in the history
(cherry-picked from e2dc8bf)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent bce210e commit 955ea3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgsmaptoolcapture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,13 @@ void QgsMapToolCapture::canvasKeyPressEvent( QKeyEvent* e )
{
undo();

// Override default shortcut management in MapCanvas
e->ignore();
}
else if ( e->key() == Qt::Key_Escape )
{
stopCapturing();

// Override default shortcut management in MapCanvas
e->ignore();
}
Expand Down

0 comments on commit 955ea3e

Please sign in to comment.