code: def _onCompletionListTabPressed(self):
          
          canCompleteText = self._widget.model().canCompleteText
          if canCompleteText:
              self._qpart.textCursor().insertText(canCompleteText)
              self.invokeCompletionIfAvailable()
docs: Tab pressed on completion list
          Insert completable text, if available