Bug fix: Stop Page up/down infinite recursion

This commit is contained in:
Kiooeht 2011-05-13 11:34:22 -07:00
parent 6e61703e6f
commit 9c7ac96ea2

View file

@ -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):