From 9c7ac96ea28a69353ff4fc6a616bf65e50a2af67 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Fri, 13 May 2011 11:34:22 -0700 Subject: [PATCH] Bug fix: Stop Page up/down infinite recursion --- convo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convo.py b/convo.py index a73993c..ead896f 100644 --- a/convo.py +++ b/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):