fix keycombination

This commit is contained in:
Jakub Trllo 2025-06-16 15:26:57 +02:00
parent 150d01fb51
commit d07dcb2590

View file

@ -349,7 +349,10 @@ class LoaderWindow(QtWidgets.QWidget):
self._reset_on_show = True
def keyPressEvent(self, event):
combination = event.keyCombination()
if hasattr(event, "keyCombination"):
combination = event.keyCombination()
else:
combination = QtGui.QKeySequence(event.modifiers() | event.key())
if (
FIND_KEY_SEQUENCE == combination
and not event.isAutoRepeat()