code: def cancel_grab(self):
          
          logger.debug("User canceled hotkey recording.")
          self.recording_finished.emit(True)
          self._setKeyLabel(self.key if self.key is not None else "(None)")
docs: This is called when the user cancels a recording.
          Canceling is done by clicking with the left mouse button.