From 45477b329571168d197fc9e0fc13ef9be377242d Mon Sep 17 00:00:00 2001 From: Kiooeht Date: Thu, 5 May 2011 20:53:03 -0700 Subject: [PATCH] Bug fix: Allow continued typing while text area has focus --- TODO.mkdn | 1 - convo.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/TODO.mkdn b/TODO.mkdn index c2b418a..f9435a5 100644 --- a/TODO.mkdn +++ b/TODO.mkdn @@ -20,7 +20,6 @@ Bugs * Windows XP SP2: sometimes mouse clicks dont register? must be some kinda crash * Leave memos on reconnect, needs to auto-rejoin memos * Leave memos on profile change (should just change nick) -* Text input loses focus when scrolling/clicking on text area Mac Bugs -------- diff --git a/convo.py b/convo.py index 17deb8b..b6f748b 100644 --- a/convo.py +++ b/convo.py @@ -317,6 +317,10 @@ class PesterText(QtGui.QTextEdit): self.parent().clearNewMessage() QtGui.QTextEdit.focusInEvent(self, event) + def keyPressEvent(self, event): + self.parent().textInput.keyPressEvent(event) + QtGui.QTextEdit.keyPressEvent(self, event) + def mousePressEvent(self, event): url = self.anchorAt(event.pos()) if url != "":