Skip to content
Permalink
Browse files

Allow escape to cancel drawing new features

  • Loading branch information
nyalldawson committed Sep 10, 2015
1 parent 86ffda6 commit e2dc8bfe148a70173deee258f36c0194e53fda63
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/app/qgsmaptoolcapture.cpp
@@ -320,6 +320,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 e2dc8bf

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