code: def _onShortcutPasteLine(self):
          
          lines = self.lines[self._selectedLinesSlice()]
          text = QApplication.clipboard().text()
          if text:
              with self:
                  if self.textCursor().hasSelection():
                      startBlockNumber, endBlockNumber = self._selectedBlockNumbers()
                      del self.lines[self._selectedLinesSlice()]
                      self.lines.insert(startBlockNumber, text)
                  else:
                      line, col = self.cursorPosition
                      if col > 0:
                          line = line + 1
                      self.lines.insert(line, text)
docs: Paste lines from the clipboard