Bug fix: Don't send Up and Down to both textarea and textinput
This commit is contained in:
parent
aedb054d90
commit
e6c3791464
1 changed files with 2 additions and 1 deletions
3
convo.py
3
convo.py
|
@ -342,7 +342,8 @@ class PesterText(QtGui.QTextEdit):
|
||||||
|
|
||||||
def keyPressEvent(self, event):
|
def keyPressEvent(self, event):
|
||||||
if hasattr(self.parent(), 'textInput'):
|
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)
|
self.parent().textInput.keyPressEvent(event)
|
||||||
QtGui.QTextEdit.keyPressEvent(self, event)
|
QtGui.QTextEdit.keyPressEvent(self, event)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue