code: def register_shortcut(self, qaction_or_qshortcut, context, name,
                            add_sc_to_tip=False):
          
          self.main.register_shortcut(qaction_or_qshortcut, context,
                                      name, add_sc_to_tip)
docs: Register QAction or QShortcut to Spyder main application.
  
          if add_sc_to_tip is True, the shortcut is added to the
          action's tooltip