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.
This commit is contained in:
parent
179777239e
commit
18a3258cb5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue