This is called when the user cancels a recording.
        Canceling is done by clicking with the left mouse button.

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