Skip to content

Commit e2dc8bf

Browse files
committedSep 10, 2015
Allow escape to cancel drawing new features
1 parent 86ffda6 commit e2dc8bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/app/qgsmaptoolcapture.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,13 @@ void QgsMapToolCapture::canvasKeyPressEvent( QKeyEvent* e )
320320
{
321321
undo();
322322

323+
// Override default shortcut management in MapCanvas
324+
e->ignore();
325+
}
326+
else if ( e->key() == Qt::Key_Escape )
327+
{
328+
stopCapturing();
329+
323330
// Override default shortcut management in MapCanvas
324331
e->ignore();
325332
}

0 commit comments

Comments
 (0)
Please sign in to comment.