diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-03-31 14:54:24 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-03-31 14:54:24 +0300 |
commit | 96444dbc0919ca7e5ded77a83aa90e97c8f6f659 (patch) | |
tree | 182463ce51c1c3b33be3309d9423f149a35d59ce /plugins/SimulationView | |
parent | f176924c2a154f7e332a2aefe10235df96ced352 (diff) |
Use correct keyboard enums
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationView.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SimulationView/SimulationView.py b/plugins/SimulationView/SimulationView.py index de13851f5d..532ef459c0 100644 --- a/plugins/SimulationView/SimulationView.py +++ b/plugins/SimulationView/SimulationView.py @@ -598,8 +598,8 @@ class SimulationView(CuraView): def event(self, event) -> bool: modifiers = QApplication.keyboardModifiers() - ctrl_is_active = modifiers & Qt.ControlModifier - shift_is_active = modifiers & Qt.ShiftModifier + ctrl_is_active = modifiers & Qt.KeyboardModifier.ControlModifier + shift_is_active = modifiers & Qt.KeyboardModifier.ShiftModifier if event.type == Event.KeyPressEvent and ctrl_is_active: amount = 10 if shift_is_active else 1 if event.key == KeyEvent.UpKey: |