Skip to content
Permalink
Browse files

Allow escape to cancel drawing new features

(cherry-picked from e2dc8bf)
  • Loading branch information
nyalldawson committed Nov 18, 2015
1 parent bce210e commit 955ea3e2d952e6b92489f7b02138c8c6ff7048b1
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/qgsmaptoolcapture.cpp
@@ -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();
}

0 comments on commit 955ea3e

Please sign in to comment.
You can’t perform that action at this time.