Skip to content

Commit

Permalink
fix Qt.Key and Qt.Modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiesel committed Feb 23, 2024
1 parent 1430656 commit e8b8cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/bridge_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
2 changes: 1 addition & 1 deletion addon/stats_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e8b8cab

Please sign in to comment.