Bug fix: Stop Page up/down infinite recursion
This commit is contained in:
parent
6e61703e6f
commit
9c7ac96ea2
1 changed files with 2 additions and 1 deletions
3
convo.py
3
convo.py
|
@ -333,7 +333,8 @@ class PesterText(QtGui.QTextEdit):
|
|||
|
||||
def keyPressEvent(self, event):
|
||||
if hasattr(self.parent(), 'textInput'):
|
||||
self.parent().textInput.keyPressEvent(event)
|
||||
if event.key() not in [QtCore.Qt.Key_PageUp, QtCore.Qt.Key_PageDown]:
|
||||
self.parent().textInput.keyPressEvent(event)
|
||||
QtGui.QTextEdit.keyPressEvent(self, event)
|
||||
|
||||
def mousePressEvent(self, event):
|
||||
|
|
Loading…
Reference in a new issue