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 0d69ae2 commit b9444f7Copy full SHA for b9444f7
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