From e6c379146478a7663708113e80729d39e8c8b800 Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Wed, 1 Jun 2011 07:36:44 -0700 Subject: [PATCH] Bug fix: Don't send Up and Down to both textarea and textinput --- convo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/convo.py b/convo.py index cce8dd6..4e5c6b2 100644 --- a/convo.py +++ b/convo.py @@ -342,7 +342,8 @@ class PesterText(QtGui.QTextEdit): def keyPressEvent(self, event): if hasattr(self.parent(), 'textInput'): - if event.key() not in [QtCore.Qt.Key_PageUp, QtCore.Qt.Key_PageDown]: + if event.key() not in [QtCore.Qt.Key_PageUp, QtCore.Qt.Key_PageDown, \ + QtCore.Qt.Key_Up, QtCore.Qt.Key_Down]: self.parent().textInput.keyPressEvent(event) QtGui.QTextEdit.keyPressEvent(self, event)