Minor idle cleanup

This commit is contained in:
karxi 2016-12-10 20:38:24 -05:00
parent 7b018e0906
commit 54b42e0189
2 changed files with 7 additions and 0 deletions

View file

@ -63,6 +63,9 @@ Features
* Make the memo name entry box accept a comma-separated list
* Make right-clicking on a tab open up the right-click menu one would get on right-clicking the title (frame??)
* Add a separate 'Tweaks' section in Options
* Fix graphical issues with dark themes vs. light themes (Qt/text too light/etc.)
Todo/Done
----
* Fix parser text-loss bug that plagues everyone (especially Chumdroid users)

View file

@ -425,6 +425,10 @@ class PesterText(QtGui.QTextEdit):
self.parent().clearNewMessage()
QtGui.QTextEdit.focusInEvent(self, event)
@staticmethod
def isBot(*args, **kwargs):
return self.parent().isBot(*args, **kwargs)
def keyPressEvent(self, event):
# First parent is the PesterConvo containing this.
# Second parent is the PesterTabWindow containing *it*.