mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix keycombination
This commit is contained in:
parent
150d01fb51
commit
d07dcb2590
1 changed files with 4 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue