Ctrl + click to copy links. Bug fix: Only open links on left click
This commit is contained in:
parent
85b535bfdc
commit
20478c94b3
2 changed files with 15 additions and 9 deletions
|
@ -46,6 +46,7 @@ CHANGELOG
|
||||||
* Make adding quirks into multi-page wizard - Kiooeht [evacipatedBox]
|
* Make adding quirks into multi-page wizard - Kiooeht [evacipatedBox]
|
||||||
* Flash the taskbar on new messages - Kiooeht [evacipatedBox]
|
* Flash the taskbar on new messages - Kiooeht [evacipatedBox]
|
||||||
* Third beep sound for when your initials are mentioned in memos - Kiooeht [evacipatedBox] (Idea: Lexi [lexicalNuance])
|
* Third beep sound for when your initials are mentioned in memos - Kiooeht [evacipatedBox] (Idea: Lexi [lexicalNuance])
|
||||||
|
* Ctrl + click to copy links - Kiooeht [evacipatedBox]
|
||||||
* Bug fixes
|
* Bug fixes
|
||||||
* Logviewer updates - Kiooeht [evacipatedBox]
|
* Logviewer updates - Kiooeht [evacipatedBox]
|
||||||
* Memo scrollbar thing - Kiooeht [evacipatedBox]
|
* Memo scrollbar thing - Kiooeht [evacipatedBox]
|
||||||
|
@ -62,6 +63,7 @@ CHANGELOG
|
||||||
* End all colour tags and restart them on split messages - Kiooeht [evacipatedBox]
|
* End all colour tags and restart them on split messages - Kiooeht [evacipatedBox]
|
||||||
* Chat input box right-click menus - Kiooeht [evacipatedBox]
|
* Chat input box right-click menus - Kiooeht [evacipatedBox]
|
||||||
* Don't overflow random colours into colourless messages - Kiooeht [evacipatedBox]
|
* Don't overflow random colours into colourless messages - Kiooeht [evacipatedBox]
|
||||||
|
* Only open links on left click - Kiooeht [evacipatedBox]
|
||||||
|
|
||||||
### 3.14.1
|
### 3.14.1
|
||||||
* Pesterchum 3.14 - illuminatedwax [ghostDunk]
|
* Pesterchum 3.14 - illuminatedwax [ghostDunk]
|
||||||
|
|
4
convo.py
4
convo.py
|
@ -368,6 +368,7 @@ class PesterText(QtGui.QTextEdit):
|
||||||
QtGui.QTextEdit.keyPressEvent(self, event)
|
QtGui.QTextEdit.keyPressEvent(self, event)
|
||||||
|
|
||||||
def mousePressEvent(self, event):
|
def mousePressEvent(self, event):
|
||||||
|
if event.button() == QtCore.Qt.LeftButton:
|
||||||
url = self.anchorAt(event.pos())
|
url = self.anchorAt(event.pos())
|
||||||
if url != "":
|
if url != "":
|
||||||
if url[0] == "#" and url != "#pesterchum":
|
if url[0] == "#" and url != "#pesterchum":
|
||||||
|
@ -375,6 +376,9 @@ class PesterText(QtGui.QTextEdit):
|
||||||
elif url[0] == "@":
|
elif url[0] == "@":
|
||||||
handle = unicode(url[1:])
|
handle = unicode(url[1:])
|
||||||
self.parent().mainwindow.newConversation(handle)
|
self.parent().mainwindow.newConversation(handle)
|
||||||
|
else:
|
||||||
|
if event.modifiers() == QtCore.Qt.ControlModifier:
|
||||||
|
QtGui.QApplication.clipboard().setText(url)
|
||||||
else:
|
else:
|
||||||
QtGui.QDesktopServices.openUrl(QtCore.QUrl(url, QtCore.QUrl.TolerantMode))
|
QtGui.QDesktopServices.openUrl(QtCore.QUrl(url, QtCore.QUrl.TolerantMode))
|
||||||
QtGui.QTextEdit.mousePressEvent(self, event)
|
QtGui.QTextEdit.mousePressEvent(self, event)
|
||||||
|
|
Loading…
Reference in a new issue