Chat widget now is multiline. Add new lines with shift+enter

This commit is contained in:
2018-12-19 04:32:47 -06:00
parent eb545f3763
commit ea005587de
2 changed files with 3 additions and 2 deletions

View File

@@ -736,7 +736,8 @@ class chatBuffer(baseBuffer):
self.tab.set_focus_function(self.onFocus)
def catch_enter(self, event, *args, **kwargs):
if event.GetKeyCode() == wx.WXK_RETURN:
shift=event.ShiftDown()
if event.GetKeyCode() == wx.WXK_RETURN and shift == False:
self.send_chat_to_user()
event.Skip()