def mouseDoubleClickEvent(self, event): """Highlight the current word keeping the selection""" Qutepart.mouseDoubleClickEvent(self, event) if self.selectedText: selectedPos = self.absSelectedPosition self.onHighlight() self.absSelectedPosition = selectedPos
def mouseDoubleClickEvent(self, event): """Disable search highlight on double click""" Qutepart.mouseDoubleClickEvent(self, event)