make shift+enter work for new_line
This commit is contained in:
parent
7e5ce5e9cc
commit
4c65321de8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue