fix: use .value for KeyboardModifier/Key enum in keyPressEvent (PyQt6+Python 3.11 compat)
This commit is contained in:
parent
a93bc7907d
commit
ba6935420d
@ -145,7 +145,7 @@ class KeyCaptureDialog(QDialog):
|
||||
return
|
||||
|
||||
# Build the sequence
|
||||
keys = int(mod_mask) | int(key)
|
||||
keys = mod_mask.value | key.value
|
||||
self._captured_seq = QSeq(keys)
|
||||
self._label.setText(f"Captured: {self._captured_seq.toString()}\nPress Close to accept")
|
||||
self.accept()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user