Skip to content

Commit

Permalink
enabled control button for selection in map canvas
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4960 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Mar 3, 2006
1 parent a017ec0 commit e8e4ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmaptoolselect.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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 e8e4ff7

Please sign in to comment.