Only respond to left mouse button

This commit is contained in:
fieldOfView 2018-04-15 12:08:49 +02:00 committed by Lipu Fei
parent 9a389bdcdd
commit 0e85802f9c

View File

@ -56,7 +56,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