diff options
Diffstat (limited to 'main/src')
| -rw-r--r-- | main/src/ui/chat_input/chat_text_view.vala | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/main/src/ui/chat_input/chat_text_view.vala b/main/src/ui/chat_input/chat_text_view.vala index 2f8393d2..d6d45e34 100644 --- a/main/src/ui/chat_input/chat_text_view.vala +++ b/main/src/ui/chat_input/chat_text_view.vala @@ -76,12 +76,7 @@ public class ChatTextView : ScrolledWindow { private bool on_text_input_key_press(EventKey event) { if (event.keyval in new uint[]{Key.Return, Key.KP_Enter}) { - if ((event.state & ModifierType.SHIFT_MASK) > 0) { - text_view.buffer.insert_at_cursor("\n", 1); - } else if (text_view.buffer.text.strip() != "") { - send_text(); - edit_history.reset_history(); - } + text_view.buffer.insert_at_cursor("\n", 1); return true; } if (event.keyval == Key.Escape) { |
