add hook for overriding state shortcuts

This commit is contained in:
Damien Elmes 2017-08-08 10:09:12 +10:00
parent 7ad8d761d1
commit cfb50fa03c

View File

@ -638,6 +638,7 @@ title="%s" %s>%s</button>''' % (
return qshortcuts
def setStateShortcuts(self, shortcuts):
runHook(self.state+"StateShortcuts", shortcuts)
self.stateShortcuts = self.applyShortcuts(shortcuts)
def clearStateShortcuts(self):