We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd87fc1 commit 5de4b20Copy full SHA for 5de4b20
src/gui/qgsmaptoolselect.cpp
@@ -41,7 +41,7 @@ void QgsMapToolSelect::canvasPressEvent(QMouseEvent * e)
41
42
void QgsMapToolSelect::canvasMoveEvent(QMouseEvent * e)
43
{
44
- if (e->state() != Qt::LeftButton)
+ if (e->state() != Qt::LeftButton && e->state() != Qt::LeftButton + Qt::ControlModifier)
45
return;
46
47
if (!mDragging)
@@ -86,7 +86,7 @@ void QgsMapToolSelect::canvasReleaseEvent(QMouseEvent * e)
86
87
// if Ctrl key is pressed, selected features will be added to selection
88
// instead of removing old selection
89
- bool lock = (e->state() == Qt::LeftButton + Qt::ControlModifier);
+ bool lock = (e->state() == Qt::ControlModifier);
90
mCanvas->currentLayer()->select(&search, lock);
91
92
}
0 commit comments