From ba6935420d4cd0347459b4d804dcdf0cffabb2cf Mon Sep 17 00:00:00 2001 From: Maksim Totmin Date: Mon, 1 Jun 2026 00:09:23 +0700 Subject: [PATCH] fix: use .value for KeyboardModifier/Key enum in keyPressEvent (PyQt6+Python 3.11 compat) --- src/hotkeys.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotkeys.py b/src/hotkeys.py index ed13ba2..746a07a 100644 --- a/src/hotkeys.py +++ b/src/hotkeys.py @@ -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()