code: def qteBindKeyGlobal(self, keysequence, macroName: str):
          keysequence = QtmacsKeysequence(keysequence)
          if not self.qteIsMacroRegistered(macroName):
              msg = 'Cannot globally bind key to unknown macro <b>{}</b>.'
              msg = msg.format(macroName)
              self.qteLogger.error(msg, stack_info=True)
              return False
          self._qteGlobalKeyMap.qteInsertKey(keysequence, macroName)
          for app in self._qteAppletList:
              self.qteBindKeyApplet(keysequence, macroName, app)
          return True