Commit 18a3258c authored by Tomasz Miąsko's avatar Tomasz Miąsko
Browse files

Fix inserting a newline on shift-enter.

Return false from key-press-event to propagate event to a default
handler that will insert a newline into the entry widget.
parent 17977723
......@@ -680,7 +680,7 @@ 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
return False
message_textview = widget
message_buffer = message_textview.get_buffer()
start_iter, end_iter = message_buffer.get_bounds()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment