diff options
| author | xavi92 <xavi.dcr@tutanota.com> | 2021-12-22 23:47:48 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-10-05 14:32:09 +0200 |
| commit | ef11c0ef26236ef596243d5476707279e2a4f017 (patch) | |
| tree | 9b06b6c2c0005af0c8a162ff5cea40dd810611aa | |
| parent | abe6389349b66040b428284b793f31a6239c1766 (diff) | |
Use ctrl+enter to enter newline
| -rw-r--r-- | main/src/ui/chat_input/chat_text_view.vala | 2 |
1 files changed, 1 insertions, 1 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..6be9df95 100644 --- a/main/src/ui/chat_input/chat_text_view.vala +++ b/main/src/ui/chat_input/chat_text_view.vala @@ -76,7 +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) { + if ((event.state & ModifierType.CONTROL_MASK) > 0) { text_view.buffer.insert_at_cursor("\n", 1); } else if (text_view.buffer.text.strip() != "") { send_text(); |
