aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2024-07-13 12:18:28 +0200
committerfiaxh <git@lightrise.org>2024-07-20 19:15:13 +0200
commitca980ea409b75025aa8218782d415ba9cf69e1c6 (patch)
tree02509b9b808e92e0bb3bbac44886d692a88fff3d /main/src
parentc95b65e5b47f22b1827f351a59cabb8e5f776def (diff)
downloaddino-ca980ea409b75025aa8218782d415ba9cf69e1c6.tar.gz
dino-ca980ea409b75025aa8218782d415ba9cf69e1c6.zip
Fix shift+enter in chat input not scrolling down
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/chat_input/chat_text_view.vala3
1 files changed, 2 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 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();
}