Skip to content

Commit

Permalink
Allow escape to cancel drawing new features
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 10, 2015
1 parent 86ffda6 commit e2dc8bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/qgsmaptoolcapture.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit e2dc8bf

Please sign in to comment.