diff --git a/addon/bridge_actions.py b/addon/bridge_actions.py index cb13e0d..bf351ad 100644 --- a/addon/bridge_actions.py +++ b/addon/bridge_actions.py @@ -162,7 +162,7 @@ def arg_from(i): elif args[0] == "suggest_change": character = args[1] - key_sequence = QKeySequence(Qt.CTRL + Qt.Key_F).toString( + key_sequence = QKeySequence(Qt.Modifier.CTRL | Qt.Key.Key_F).toString( QKeySequence.SequenceFormat.NativeText ) diff --git a/addon/stats_window.py b/addon/stats_window.py index 78ad293..19c335e 100644 --- a/addon/stats_window.py +++ b/addon/stats_window.py @@ -248,7 +248,7 @@ def closeEvent(self, evt): return QDialog.closeEvent(self, evt) def keyPressEvent(self, evt): - if evt.key() == Qt.Key_F11: + if evt.key() == Qt.Key.Key_F11: self.toggle_fullscreen() return return QDialog.keyPressEvent(self, evt)