From ca980ea409b75025aa8218782d415ba9cf69e1c6 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 13 Jul 2024 12:18:28 +0200 Subject: Fix shift+enter in chat input not scrolling down --- main/src/ui/chat_input/chat_text_view.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/src/ui/chat_input/chat_text_view.vala b/main/src/ui/chat_input/chat_text_view.vala index 72ebc845..aa246d8d 100644 --- a/main/src/ui/chat_input/chat_text_view.vala +++ b/main/src/ui/chat_input/chat_text_view.vala @@ -102,7 +102,8 @@ public class ChatTextView : Box { } if ((state & ModifierType.SHIFT_MASK) > 0) { - text_view.buffer.insert_at_cursor("\n", 1); + // Let the default handler normally insert a newline if shift was hold + return false; } else if (text_view.buffer.text.strip() != "") { send_text(); } -- cgit v1.2.3-70-g09d2