Bug fix: Don't send Up and Down to both textarea and textinput

This commit is contained in:
Kiooeht 2011-06-01 07:36:44 -07:00
parent aedb054d90
commit e6c3791464

View file

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