I tried adding a qaction with shortcut into houdini; but the shortcut seems not work:
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QAction
from PySide2.QtGui import QKeySequence

mw = hou.qt.mainWindow()
act = QAction(mw)
act.setShortcut(QKeySequence(Qt.Key_Space))
mw.addAction(act)
act.setShortcutContext(Qt.WidgetWithChildrenShortcut)
act.triggered.connect(lambda: print("hi"))
print(mw.actions())
Houdini get this action, but shortcut(space key) not print "hi".
any help? Thanks!