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