Only respond to left mouse button

This commit is contained in:
fieldOfView 2018-04-15 12:08:49 +02:00
parent 523e6a59e3
commit d9034a6c85

View file

@ -58,7 +58,7 @@ class SupportEraser(Tool):
modifiers = QApplication.keyboardModifiers() modifiers = QApplication.keyboardModifiers()
ctrl_is_active = modifiers & Qt.ControlModifier ctrl_is_active = modifiers & Qt.ControlModifier
if event.type == Event.MousePressEvent and self._controller.getToolsEnabled(): if event.type == Event.MousePressEvent and MouseEvent.LeftButton in event.buttons and self._controller.getToolsEnabled():
if ctrl_is_active: if ctrl_is_active:
self._controller.setActiveTool("TranslateTool") self._controller.setActiveTool("TranslateTool")
return return