Skip to content
Permalink
Browse files
enabled control button for selection in map canvas
git-svn-id: http://svn.osgeo.org/qgis/trunk@4960 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 3, 2006
1 parent dd87fc1 commit 5de4b202efc12aa8614a01d2b3e6f1c6bda67797
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmaptoolselect.cpp
@@ -41,7 +41,7 @@ void QgsMapToolSelect::canvasPressEvent(QMouseEvent * e)

void QgsMapToolSelect::canvasMoveEvent(QMouseEvent * e)
{
if (e->state() != Qt::LeftButton)
if (e->state() != Qt::LeftButton && e->state() != Qt::LeftButton + Qt::ControlModifier)
return;

if (!mDragging)
@@ -86,7 +86,7 @@ void QgsMapToolSelect::canvasReleaseEvent(QMouseEvent * e)

// if Ctrl key is pressed, selected features will be added to selection
// instead of removing old selection
bool lock = (e->state() == Qt::LeftButton + Qt::ControlModifier);
bool lock = (e->state() == Qt::ControlModifier);
mCanvas->currentLayer()->select(&search, lock);

}

0 comments on commit 5de4b20

Please sign in to comment.