We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent bc9aa3f commit 2d50f13Copy full SHA for 2d50f13
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 && e->state() != Qt::LeftButton + Qt::ControlModifier)
+ if ( e->buttons() != Qt::LeftButton )
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::ControlModifier);
+ bool lock = (e->modifiers() & Qt::ControlModifier);
90
mCanvas->currentLayer()->select(&search, lock);
91
92
}
0 commit comments