make shift+enter work for new_line

This commit is contained in:
Yann Leboulanger 2015-07-30 23:06:09 +02:00
parent 7e5ce5e9cc
commit 4c65321de8
1 changed files with 2 additions and 0 deletions

View File

@ -706,6 +706,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
elif event.keyval == Gdk.KEY_Return or \
event.keyval == Gdk.KEY_KP_Enter: # ENTER
if event_state & Gdk.ModifierType.SHIFT_MASK:
return True
message_textview = widget
message_buffer = message_textview.get_buffer()
start_iter, end_iter = message_buffer.get_bounds()