code: def event(self, event):
          
          if event.type() in (QEvent.Shortcut, QEvent.ShortcutOverride):
              return True
          else:
              return super(ShortcutEditor, self).event(event)
docs: Qt method override.