mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Only respond to left mouse button
This commit is contained in:
parent
523e6a59e3
commit
d9034a6c85
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue