code: def reset_to_default(self):
          
          reset = QMessageBox.warning(self, _("Shortcuts reset"),
                                      _("Do you want to reset "
                                        "to default values?"),
                                      QMessageBox.Yes | QMessageBox.No)
          if reset == QMessageBox.No:
              return
          reset_shortcuts()
          self.main.apply_shortcuts()
          self.table.load_shortcuts()
          self.load_from_conf()
          self.set_modified(False)
docs: Reset to default values of the shortcuts making a confirmation.