docs: def _do_home_key(self, event=None, select=False):
          """ Performs home key action """
          # get nb char to first significative char
          min_column = self.indenter_mode.min_column
          text = api.TextHelper(self).current_line_text()[min_column:]
          indent = len(text) - len(text.lstrip())
          delta = (self.textCursor().positionInBlock() - indent - min_column)
          cursor = self.textCursor()
          move = QtGui.QTextCursor.MoveAnchor
          if select:
              move = QtGui.QTextCursor.KeepAnchor
          if delta > 0:
              cursor.movePosition(QtGui.QTextCursor.Left, move, delta)
          else:
              cursor.movePosition(QtGui.QTextCursor.StartOfBlock, move)
              cursor.movePosition(QtGui.QTextCursor.Right, cursor.MoveAnchor, min_column)
          self.setTextCursor(cursor)
          if event:
              event.accept()