mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Use correct keyboard enums
This commit is contained in:
parent
f176924c2a
commit
96444dbc09
3 changed files with 5 additions and 5 deletions
|
@ -53,7 +53,7 @@ class SupportEraser(Tool):
|
|||
def event(self, event):
|
||||
super().event(event)
|
||||
modifiers = QApplication.keyboardModifiers()
|
||||
ctrl_is_active = modifiers & Qt.ControlModifier
|
||||
ctrl_is_active = modifiers & Qt.KeyboardModifier.ControlModifier
|
||||
|
||||
if event.type == Event.MousePressEvent and MouseEvent.LeftButton in event.buttons and self._controller.getToolsEnabled():
|
||||
if ctrl_is_active:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue